all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: Auto-installing packages?
Date: Mon, 17 Sep 2018 09:40:57 -0400	[thread overview]
Message-ID: <jwvr2hs2qxv.fsf-monnier+gmane.emacs.devel@gnu.org> (raw)
In-Reply-To: 877ejks5su.fsf@russet.org.uk

>>> I use `use-package' to "automatically" install packages for me.
>> How does it work?
>> Doesn't this silently install at startup the packages you specified?
>> I really dislike the "silently" part (and am not too happy about doing
>> all of it at startup either).
> Yep. It runs "package-install". It's not silent, since you get all the

By "silent" I meant that it does it without asking for
permission/confirmation first.  I understand that it's a small matter of
programming, but from the UI-side I consider this unacceptable.

> install messages. And, yes, doing it as part of startup is very slow
> iff none of the packages are installed. Also, it breaks startup if a
> package installation fails.
> Still this only happens when you use Emacs on a new machine or in my
> case, when I change Emacs version.

Which all argues in favor of prompting.

>> Another related issue is the "auto-upgrade" part.  This one is worse
>> because it seems to inevitably involve some kind of "polling" of
>> a central server, which I find to be a serious privacy issue.
> It doesn't autoupdate, although it's simple to make it do so, but
> automating the "package-refresh, update-all" cycle. A privacy issue,
> yes, maybe, although it's not massively different from running this
> manually.

I find a constant "call home" done automatically qualitatively very
different from running it manually (e.g. you can make sure it's always
done from your home, for example).

But I wouldn't oppose an option to automatically check for updates in
the background (I'd also be OK with an option to auto-download them, but
I'd oppose auto-installing them updates without an explicit user
interaction).

>> Indeed, there's the problem of installing those auto-install-autoloads,
> There is a practical issue with handling it *just like* autoloads.
> At the moment, autoloads happens in the command-loop.

Actually, it happens at a much lower-level within `funcall`.

> So, from nearly anywhere.

Oh, yes.

> That's okay, because if an autoloaded package cannot be autoloaded,
> then Emacs has some pretty major issues.
> Installing a package over a network is a much more failable process.

No doubt.  Maybe rather than "prompt the user, install, and retry the
call", we'll need to "abort the current command, then prompt, ...".

> No, you misunderstand me. You don't need to pre-install this way. You
> release "Emacs without ELPA", but include
> "auto-install-autoloads". Emacs will get bigger this way over time.

Ah, make the auto-installs into an upgradable package, yes that makes
a lot of sense.


        Stefan




  reply	other threads:[~2018-09-17 13:40 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-14  1:51 Auto-installing packages? Stefan Monnier
2018-09-14  7:09 ` Phil Sainty
2018-09-14  8:39 ` T.V Raman
2018-09-15  0:46   ` Richard Stallman
2018-09-17 11:50     ` Phillip Lord
2018-09-17 22:51       ` Richard Stallman
2018-09-18 16:16         ` Phillip Lord
2018-09-19  3:40           ` Richard Stallman
2018-09-20 16:58             ` Phillip Lord
2018-09-24  1:46               ` Richard Stallman
2018-09-14 14:11 ` Phillip Lord
2018-09-14 18:17   ` Stefan Monnier
2018-09-17 11:48     ` Phillip Lord
2018-09-17 13:40       ` Stefan Monnier [this message]
2018-09-18 16:12         ` Phillip Lord
2018-09-18 21:05           ` Stefan Monnier
2018-09-14 15:52 ` Perry E. Metzger
2018-09-15  0:50   ` Richard Stallman

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=jwvr2hs2qxv.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 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.