all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Split off some backends from Company?
Date: Wed, 13 Aug 2014 23:07:25 -0400	[thread overview]
Message-ID: <jwvd2c3wzje.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <53EC1CF2.3050904@yandex.ru> (Dmitry Gutov's message of "Thu, 14 Aug 2014 06:20:34 +0400")

>> 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?

> And some users just bind a key sequence to this command (which all Company
> backend double as), to invoke instead of pressing TAB for yasnippet
> expansion. I guess this specific usage could be facilitated via a minor
> mode, but I don't know how popular it is.

Indeed the completion-at-point-function don't double as commands the way
company backends do.  And while it's easy to create a wrapper for it,
that wrapper will inevitably end up choosing a particular UI, so if we
want to use Company for it, we're stuck with a dependency on Company.

> setup). So the simplicity has to be balanced against the odds of users being
> forced to undo the automatic setup.

That can be a delicate balance, indeed.

> 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".

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.
E.g. AUCTeX does just that (with a custom var that lets you "opt out"
if you prefer).
Of course, for people like me who install GNU ELPA via "git clone elpa;
make", we get all packages whether we want them or not, so "turns it on"
shouldn't be too much in your face.


        Stefan



  reply	other threads:[~2014-08-14  3:07 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 [this message]
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=jwvd2c3wzje.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=dgutov@yandex.ru \
    --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 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.