all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
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: Thu, 14 Aug 2014 08:23:03 +0400	[thread overview]
Message-ID: <53EC39A7.2060806@yandex.ru> (raw)
In-Reply-To: <jwvd2c3wzje.fsf-monnier+emacs@gnu.org>

On 08/14/2014 07:07 AM, Stefan Monnier wrote:
>>> I see what you mean, but why does this need another package?
>>> It seems the code could/should be in yasnippet, controlled by
>>> something like a minor-mode.
>> It could be in yasnippet, but then it would implicitly depend on Company
>> anyway.
>
> You mean it can't be a completion-at-point-function?

Not a useful one, no. Like mentioned, company-yasnippet's candidates 
list not exhaustive (in terms of things, in general, that the user would 
usually want to see completed), so it's won't be a good completion 
function by itself.

>> Further, there is a convention in the third-party developer community of not
>> doing too much in autoloads ("installing the package shouldn't turn it on",
>> or something along these lines).
>
> That's true as well.  Of course "turn it on" is not always as clear-cut
> as it sounds.  Adding oneself to company-backend might be seen as "turn
> it on", but if you consider that it's only actually used if you do
> enable company and if you use the appropriate major mode (or compiler
> backend, or snippet library, ...), then you may decide that it's not
> really "turned on".

Ok, that makes sense. But anyway, the above convention is only a 
secondary consideration, as far as I'm concerned.

> To the extent that ELPA packages are normally installed by the end user
> (my install.el package distinguished "system install" from "user
> install" but package.el doesn't really provide much support for
> system-wide installs, thjo it doesn't actively prevent them), I think
> it's not that bad if installing a package also turns it on.

Agreed.



      reply	other threads:[~2014-08-14  4:23 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
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 [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=53EC39A7.2060806@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.