Re: Notmuch-Company overrides other company backends?

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

Date: Sat, 08 Jan 2022 16:19:56 -0400

To: Igor Sosa Mayor, notmuch@notmuchmail.org

Cc:

From: David Bremner


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.

> 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.
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: