Re: Notmuch-Company overrides other company backends?

Subject: Re: Notmuch-Company overrides other company backends?

Date: Sat, 08 Jan 2022 22:17:35 +0100

To: notmuch@notmuchmail.org

Cc:

From: Igor Sosa Mayor


David Bremner <david@tethera.net> writes:

> Igor Sosa Mayor <joseleopoldo1792@gmail.com> writes:
>
>>>
>>> I guess you mean that it overrides it in a buffer-local way, in
>>> notmuch-message-mode? Or do you see some kind of global overiding going
>>> on?
>>>
>>> d
>>
>> thanks for your reply. Yes, sorry for not being clear enough. I see in
>> the code
>>
>>   (make-local-variable 'company-backends)
>>   (setq company-backends '(notmuch-company))
>>
>> https://github.com/kootenpv/emp/blob/master/.emacs.d/notmuch/notmuch-company.el
>
> That's kind of an odd reference, since it seems to be some old copy of
> our code, possibly mutated.

yes, sorry. I think it was google who gave me the reference. I see in
the present code there is
(setq-local company-backends '(notmuch-company))

https://git.notmuchmail.org/git?p=notmuch;a=blob;f=emacs/notmuch-company.el;h=7e05dc8f2a796aaf2c664fdcc4be63f6a443057f;hb=HEAD

>> What is the best method to get the other backends back?
>
> I would try replacing the (setq company-backends '(notmuch-local)) with
> (push 'notmuch-company company-backends)
>
> In the case of the current code, you'd have to unwind the setq-default
> into the two-lines in the old copy you linked to.

OK, thanks. I will give it a try!

Best,

Igor 

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: