all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Dmitry Gutov <dgutov@yandex.ru>
To: Jefferson Carpenter <jeffersoncarpenter2@gmail.com>, emacs-devel@gnu.org
Subject: Re: Make company-backends buffer-local?
Date: Sun, 4 Mar 2018 21:26:45 +0200	[thread overview]
Message-ID: <c7e6fd33-d68e-6240-1554-b6d280ffbcea@yandex.ru> (raw)
In-Reply-To: <83369150-de09-f305-18af-cdc9420eea4e@gmail.com>

On 3/4/18 9:47 AM, Jefferson Carpenter wrote:
> First post to this list -- sorry if this is either not a good suggestion 
> at all, not right format, or too irrelevant.
> 
> The company-backends variable is currently a global variable.  The 
> backend that serves completions is the first one that returns a prefix 
> for the location at point.
> 
> Are there any barriers to making company-backends a buffer-local 
> variable?  I don't see any drawbacks - it would take a pretty small 
> amount of extra memory to create a copy for each buffer.
You can do this in your own init script. Performance benefits are 
negligible, but you can organize your backends this way.



      parent reply	other threads:[~2018-03-04 19:26 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
2018-03-04 16:25 ` Clément Pit-Claudel
2018-03-04 19:26 ` Dmitry Gutov [this message]

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=c7e6fd33-d68e-6240-1554-b6d280ffbcea@yandex.ru \
    --to=dgutov@yandex.ru \
    --cc=emacs-devel@gnu.org \
    --cc=jeffersoncarpenter2@gmail.com \
    /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 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.