From: Dmitry Gutov <dgutov@yandex.ru>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Split off some backends from Company?
Date: Wed, 13 Aug 2014 05:57:35 +0400 [thread overview]
Message-ID: <53EAC60F.6030104@yandex.ru> (raw)
In-Reply-To: <jwva979sonu.fsf-monnier+emacs@gnu.org>
On 08/12/2014 07:50 PM, Stefan Monnier wrote:
> Rather than push them to separate packages, it would be preferable to
> turn them into completion-at-point-functions and push them to their
> corresponding parent package (i.e. to BBDB, oddmuse, and ropemacs).
Good point. We've discussed this before, but thanks for the reminder.
Doing that with company-bbdb would be hard, but looks like it'll be
obsolete as soon as `message-completion-function' starts behaving
correctly: `message-expand-name-databases' includes `bbdb' by default.
>> Maybe also company-yasnippet.
>
> Same here.
Probably not: using yasnippet as a completion source is a questionable
decision, which each user should make themselves. It replaces the
advertised way to interact with yasnippet (type the snippet key, press
TAB), and the recommended way to use this backend is to group it with
others, not by itself (think `completion-table-merge' instead of
`completion-table-in-turn'), so putting it in
`completion-at-point-functions' would probably be misguided.
>> Taking it further, we could do the same that depend on specific external
>> programs to be available, but not Elisp code: ...
>
> There's no such obvious "parent package" to hold those, so I guess
> separate ELPA packages would be OK.
Okay, it's good to have your approval. They're pretty unobtrusive,
though, so I'll come back to them later.
>> - The setup proceduce for each such backend becomes more complicated: you
>> have to install the backend, its dependencies (happens automatically),
>> external dependencies, and add 1-2 new lines to your init file.
>
> Usually, enough ;;;###autoload trickery can do the setup transparently
> for the user.
Hmm, yes. I guess we could do that if the user explicitly installed a
backend package.
next prev parent reply other threads:[~2014-08-13 1:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-11 19:21 Split off some backends from Company? Dmitry Gutov
[not found] ` <jwva979sonu.fsf-monnier+emacs@gnu.org>
2014-08-13 1:57 ` Dmitry Gutov [this message]
2014-08-13 12:38 ` Stefan Monnier
2014-08-14 2:20 ` Dmitry Gutov
2014-08-14 3:07 ` Stefan Monnier
2014-08-14 4:23 ` 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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53EAC60F.6030104@yandex.ru \
--to=dgutov@yandex.ru \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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.