GNU bug report logs - #48775
Making company mode with completion from opened files

Previous Next

Package: emacs;

Reported by: ludvig-faddeev <at> gmx.com

Date: Tue, 1 Jun 2021 11:02:01 UTC

Severity: normal

Tags: notabug

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 48775 in the body.
You can then email your comments to 48775 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#48775; Package emacs. (Tue, 01 Jun 2021 11:02:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to ludvig-faddeev <at> gmx.com:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 01 Jun 2021 11:02:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: ludvig-faddeev <at> gmx.com
To: bug-gnu-emacs <at> gnu.org
Subject: Making company mode with completion from opened files
Date: Tue, 1 Jun 2021 13:01:26 +0200
Am currently working on a fortran project with company mode for completion.
Although I get emacs specific commands, I would like to get completion on words
for opened files.

If I have an opened file with the following text

--------

An inverse problem in science is the process of calculating from a set of observations the causal factors that produced them: for example, calculating an image in X-ray computed tomography, source reconstruction in acoustics, or calculating the density of the Earth from measurements of its gravity field. It is called an inverse problem because it starts with the effects and then calculates the causes. It is the inverse of a forward problem, which starts with the causes and then calculates the effects.

--------

Then if I start writing "tom", company-mode will show me completion with "tomography"





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48775; Package emacs. (Tue, 01 Jun 2021 20:43:02 GMT) Full text and rfc822 format available.

Message #8 received at 48775 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: ludvig-faddeev <at> gmx.com, 48775 <at> debbugs.gnu.org
Subject: Re: bug#48775: Making company mode with completion from opened files
Date: Tue, 1 Jun 2021 23:42:30 +0300
On 01.06.2021 14:01, ludvig-faddeev <at> gmx.com wrote:
> Am currently working on a fortran project with company mode for completion.
> Although I get emacs specific commands, I would like to get completion on words
> for opened files.

Sounds like you're looking for the backend `company-dabbrev-code`.

You can see which backend is used in a given buffer (at the current 
position) with 'M-x company-diag'.

You can change the backend priorities by customizing `company-backends`.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48775; Package emacs. (Wed, 02 Jun 2021 05:51:02 GMT) Full text and rfc822 format available.

Message #11 received at 48775 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 48775 <at> debbugs.gnu.org, ludvig-faddeev <at> gmx.com
Subject: Re: bug#48775: Making company mode with completion from opened files
Date: Wed, 02 Jun 2021 07:50:30 +0200
Dmitry Gutov <dgutov <at> yandex.ru> writes:

> You can change the backend priorities by customizing `company-backends`.

So I guess there's nothing to fix here, and I'm closing this bug report.

(I'm wondering what's up with all these bug reports from different
@gmx.com accounts named after famous mathematicians (mostly dead ones).
Is somebody just amusing themselves?

Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net
 (3c-app-mailcom-bs01.server.lan [172.19.170.58]) (via HTTP); Tue, 1 Jun
 2021 13:46:48 +0200
Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net
 (3c-app-mailcom-bs01.server.lan [172.19.170.58]) (via HTTP); Tue, 1 Jun
 2021 13:17:22 +0200
Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net
 (3c-app-mailcom-bs01.server.lan [172.19.170.58]) (via HTTP); Mon, 31 May
 2021 22:16:26 +0200
Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net
 (3c-app-mailcom-bs11.server.lan [172.19.170.179]) (via HTTP); Sat, 28 Nov
 2020 22:34:07 +0100
Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net
 (3c-app-mailcom-bs01.server.lan [172.19.170.58]) (via HTTP); Tue, 1 Jun
 2021 17:23:12 +0200

They all seem to come from the same IP address?  Same as Dimech's
reports?)

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Added tag(s) notabug. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 02 Jun 2021 05:51:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 48775 <at> debbugs.gnu.org and ludvig-faddeev <at> gmx.com Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Wed, 02 Jun 2021 05:51:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48775; Package emacs. (Wed, 02 Jun 2021 09:36:01 GMT) Full text and rfc822 format available.

Message #18 received at 48775 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 48775 <at> debbugs.gnu.org, ludvig-faddeev <at> gmx.com
Subject: Re: bug#48775: Making company mode with completion from opened files
Date: Wed, 2 Jun 2021 12:35:39 +0300
On 02.06.2021 08:50, Lars Ingebrigtsen wrote:
> (I'm wondering what's up with all these bug reports from different
> @gmx.com accounts named after famous mathematicians (mostly dead ones).
> Is somebody just amusing themselves?

Maybe we have suddenly become popular in the ghost community.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48775; Package emacs. (Wed, 02 Jun 2021 13:26:02 GMT) Full text and rfc822 format available.

Message #21 received at 48775 <at> debbugs.gnu.org (full text, mbox):

From: ludvig-faddeev <at> gmx.com
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 48775 <at> debbugs.gnu.org, Dmitry Gutov <dgutov <at> yandex.ru>
Subject: bug#48775: Making company mode with completion from opened files
Date: Wed, 2 Jun 2021 15:25:40 +0200

> Sent: Wednesday, June 02, 2021 at 5:50 PM
> From: "Lars Ingebrigtsen" <larsi <at> gnus.org>
> To: "Dmitry Gutov" <dgutov <at> yandex.ru>
> Cc: ludvig-faddeev <at> gmx.com, 48775 <at> debbugs.gnu.org
> Subject: Re: bug#48775: Making company mode with completion from opened files
>
> Dmitry Gutov <dgutov <at> yandex.ru> writes:
>
> > You can change the backend priorities by customizing `company-backends`.

How do you exactly do that?







Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48775; Package emacs. (Wed, 02 Jun 2021 13:32:02 GMT) Full text and rfc822 format available.

Message #24 received at 48775 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: ludvig-faddeev <at> gmx.com, Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 48775 <at> debbugs.gnu.org
Subject: Re: bug#48775: Making company mode with completion from opened files
Date: Wed, 2 Jun 2021 16:30:53 +0300
On 02.06.2021 16:25, ludvig-faddeev <at> gmx.com wrote:
> How do you exactly do that?

'M-x customize-variable'?

Or with setq. In the simplest example:

  (setq company-backends '(company-dabbrev-code))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#48775; Package emacs. (Wed, 02 Jun 2021 14:01:01 GMT) Full text and rfc822 format available.

Message #27 received at 48775 <at> debbugs.gnu.org (full text, mbox):

From: ludvig-faddeev <at> gmx.com
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 48775 <at> debbugs.gnu.org, Dmitry Gutov <dgutov <at> yandex.ru>
Subject: bug#48775: Making company mode with completion from opened files
Date: Wed, 2 Jun 2021 16:00:39 +0200

> Sent: Wednesday, June 02, 2021 at 5:50 PM
> From: "Lars Ingebrigtsen" <larsi <at> gnus.org>
> To: "Dmitry Gutov" <dgutov <at> yandex.ru>
> Cc: ludvig-faddeev <at> gmx.com, 48775 <at> debbugs.gnu.org
> Subject: Re: bug#48775: Making company mode with completion from opened files
>
> Dmitry Gutov <dgutov <at> yandex.ru> writes:
>
> > You can change the backend priorities by customizing `company-backends`.
>
> So I guess there's nothing to fix here, and I'm closing this bug report.
>
> (I'm wondering what's up with all these bug reports from different
> @gmx.com accounts named after famous mathematicians (mostly dead ones).
> Is somebody just amusing themselves?

I'm actually a journalist trying to figure out whether the threats to our privacy
and security frequently denounced by the Free Software Movement is not restricted
to the abusive surveillance machines of proprietary software companies and governments,
but also within the Free Software Movement itself.

> Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net
>  (3c-app-mailcom-bs01.server.lan [172.19.170.58]) (via HTTP); Tue, 1 Jun
>  2021 13:46:48 +0200
> Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net
>  (3c-app-mailcom-bs01.server.lan [172.19.170.58]) (via HTTP); Tue, 1 Jun
>  2021 13:17:22 +0200
> Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net
>  (3c-app-mailcom-bs01.server.lan [172.19.170.58]) (via HTTP); Mon, 31 May
>  2021 22:16:26 +0200
> Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net
>  (3c-app-mailcom-bs11.server.lan [172.19.170.179]) (via HTTP); Sat, 28 Nov
>  2020 22:34:07 +0100
> Received: from [213.165.168.94] ([213.165.168.94]) by web-mail.gmx.net
>  (3c-app-mailcom-bs01.server.lan [172.19.170.58]) (via HTTP); Tue, 1 Jun
>  2021 17:23:12 +0200
>
> They all seem to come from the same IP address?  Same as Dimech's
> reports?)
>
> --
> (domestic pets only, the antidote for overdose, milk.)
>    bloggy blog: http://lars.ingebrigtsen.no
>




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 01 Jul 2021 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 293 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.