From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: Make company-backends buffer-local?
Date: Sun, 04 Mar 2018 10:55:35 -0500 [thread overview]
Message-ID: <jwv371fon0v.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: 83369150-de09-f305-18af-cdc9420eea4e@gmail.com
> Are there any barriers to making company-backends a buffer-local variable?
If you write your backend as a completion-at-point-function (which is
recommended whenever possible since that lets it work not just in
company), then it's already the case, since the normal way to specify
such a backend is via
(add-hook 'completion-at-point-functions #'my-backend-function nil t)
-- Stefan
next prev parent reply other threads:[~2018-03-04 15:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-04 7:47 Make company-backends buffer-local? Jefferson Carpenter
2018-03-04 15:55 ` Stefan Monnier [this message]
2018-03-04 16:25 ` Clément Pit-Claudel
2018-03-04 19:26 ` Dmitry Gutov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwv371fon0v.fsf-monnier+gmane.emacs.devel@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).