* bug#48775: Making company mode with completion from opened files
@ 2021-06-01 11:01 ludvig-faddeev
2021-06-01 20:42 ` Dmitry Gutov
0 siblings, 1 reply; 7+ messages in thread
From: ludvig-faddeev @ 2021-06-01 11:01 UTC (permalink / raw)
To: 48775
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"
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#48775: Making company mode with completion from opened files
2021-06-01 11:01 bug#48775: Making company mode with completion from opened files ludvig-faddeev
@ 2021-06-01 20:42 ` Dmitry Gutov
2021-06-02 5:50 ` Lars Ingebrigtsen
0 siblings, 1 reply; 7+ messages in thread
From: Dmitry Gutov @ 2021-06-01 20:42 UTC (permalink / raw)
To: ludvig-faddeev, 48775
On 01.06.2021 14:01, ludvig-faddeev@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`.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#48775: Making company mode with completion from opened files
2021-06-01 20:42 ` Dmitry Gutov
@ 2021-06-02 5:50 ` Lars Ingebrigtsen
2021-06-02 9:35 ` Dmitry Gutov
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Lars Ingebrigtsen @ 2021-06-02 5:50 UTC (permalink / raw)
To: Dmitry Gutov; +Cc: 48775, ludvig-faddeev
Dmitry Gutov <dgutov@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
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#48775: Making company mode with completion from opened files
2021-06-02 5:50 ` Lars Ingebrigtsen
@ 2021-06-02 9:35 ` Dmitry Gutov
2021-06-02 13:25 ` ludvig-faddeev
2021-06-02 14:00 ` ludvig-faddeev
2 siblings, 0 replies; 7+ messages in thread
From: Dmitry Gutov @ 2021-06-02 9:35 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 48775, ludvig-faddeev
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#48775: Making company mode with completion from opened files
2021-06-02 5:50 ` Lars Ingebrigtsen
2021-06-02 9:35 ` Dmitry Gutov
@ 2021-06-02 13:25 ` ludvig-faddeev
2021-06-02 13:30 ` Dmitry Gutov
2021-06-02 14:00 ` ludvig-faddeev
2 siblings, 1 reply; 7+ messages in thread
From: ludvig-faddeev @ 2021-06-02 13:25 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 48775, Dmitry Gutov
> Sent: Wednesday, June 02, 2021 at 5:50 PM
> From: "Lars Ingebrigtsen" <larsi@gnus.org>
> To: "Dmitry Gutov" <dgutov@yandex.ru>
> Cc: ludvig-faddeev@gmx.com, 48775@debbugs.gnu.org
> Subject: Re: bug#48775: Making company mode with completion from opened files
>
> Dmitry Gutov <dgutov@yandex.ru> writes:
>
> > You can change the backend priorities by customizing `company-backends`.
How do you exactly do that?
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#48775: Making company mode with completion from opened files
2021-06-02 13:25 ` ludvig-faddeev
@ 2021-06-02 13:30 ` Dmitry Gutov
0 siblings, 0 replies; 7+ messages in thread
From: Dmitry Gutov @ 2021-06-02 13:30 UTC (permalink / raw)
To: ludvig-faddeev, Lars Ingebrigtsen; +Cc: 48775
On 02.06.2021 16:25, ludvig-faddeev@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))
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#48775: Making company mode with completion from opened files
2021-06-02 5:50 ` Lars Ingebrigtsen
2021-06-02 9:35 ` Dmitry Gutov
2021-06-02 13:25 ` ludvig-faddeev
@ 2021-06-02 14:00 ` ludvig-faddeev
2 siblings, 0 replies; 7+ messages in thread
From: ludvig-faddeev @ 2021-06-02 14:00 UTC (permalink / raw)
To: Lars Ingebrigtsen; +Cc: 48775, Dmitry Gutov
> Sent: Wednesday, June 02, 2021 at 5:50 PM
> From: "Lars Ingebrigtsen" <larsi@gnus.org>
> To: "Dmitry Gutov" <dgutov@yandex.ru>
> Cc: ludvig-faddeev@gmx.com, 48775@debbugs.gnu.org
> Subject: Re: bug#48775: Making company mode with completion from opened files
>
> Dmitry Gutov <dgutov@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
>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-06-02 14:00 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-06-01 11:01 bug#48775: Making company mode with completion from opened files ludvig-faddeev
2021-06-01 20:42 ` Dmitry Gutov
2021-06-02 5:50 ` Lars Ingebrigtsen
2021-06-02 9:35 ` Dmitry Gutov
2021-06-02 13:25 ` ludvig-faddeev
2021-06-02 13:30 ` Dmitry Gutov
2021-06-02 14:00 ` ludvig-faddeev
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.