all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nic Ferrier <nferrier@ferrier.me.uk>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: emacs-devel@gnu.org
Subject: Re: package.el, auto-installation, and auto-removal
Date: Tue, 11 Nov 2014 17:10:51 +0000	[thread overview]
Message-ID: <871tp9k6hw.fsf@ferrier.me.uk> (raw)
In-Reply-To: <jwv4mu5k98r.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 11 Nov 2014 11:22:11 -0500")

Stefan Monnier <monnier@IRO.UMontreal.CA> writes:

>> It would be nice to keep it as a directory structure because they are
>> easier to edit:
>> .emacs.d/elpa/
>> .emacs.d/elpa/archives/
>> .emacs.d/elpa/archives/marmalade/
>> .emacs.d/elpa/archives/gnu/
>> .emacs.d/elpa/archives/user-installed/
>> .emacs.d/elpa/archives/user-installed/elnode
>> .emacs.d/elpa/archives/user-installed/rcirc
>
> I was thinking of keeping it in a Custom var, since that's easy to edit.
> So the equivalent of a Cask file could look like
>
>    % cat CaskNG.el
>    (setq package-archives ((gnu ...)
>                            (melpa ...)))
>    (setq packages-installed '(dash foo bar))
>    ...
>    %
>
> and you could run your tests with something like
>
>    emacs --batch -l CaskNG.el -f package-install-packages ...

I don't think a custom var is as good as something persistent in the
file system. It would be completely orthogonal to the existing data
storage which is all in the elpa dir (even the package-archives variable
is just an index of what is actually stored nicely in the elpa
directory, you can't recreate it wholly from there, but it's good
enough).

Great that you used a cask example. Because you'd actually need python
to run that. Hurray!


> So, my request is for someone to help set up the core of this, i.e. add
> the `packages-installed' var (automatically updated by
> package-install/delete and friends (I notice now that package-delete is
> not a command, surprisingly)), and add the package-install-packages
> command (so users can install their packages on a new system simply by
> setting packages-installed and then running package-install-packages).
> Bonus points for writing `package-gc' which deletes packages not
> required by packages-installed.

Yeah, as I say elpakit already has this. I could extract the code.

One thing about elpakit's solution is that elpakit does this by making a
package with the right dependencies.

Elpakit's solution is in fact just a package depend builder. Choose X, Y
and Z packages and then make a new package depending on those.

Maybe the current package installed by user state could be constantly
regenerated as a package.

The reason elpakit does that was in response to teams of clojure users
who wanted to homogenize their emacs config. So we made a system where
they could generate a base package to pull in all standard packages. And
then they could all iterate on top of that.

So making a new package all the time would be kinda useful because you
could easily share it with other people.

What do you think of that idea?


Nic



  reply	other threads:[~2014-11-11 17:10 UTC|newest]

Thread overview: 80+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-07 13:45 package.el, auto-installation, and auto-removal Stefan Monnier
2014-11-07 14:12 ` Ted Zlatanov
2014-11-07 19:50   ` joakim
2014-11-08  4:27     ` Stefan Monnier
2014-11-10 14:55   ` Phillip Lord
2014-11-10 17:46     ` Ted Zlatanov
2014-11-10 20:27       ` Nic Ferrier
2014-11-10 21:49         ` Stefan Monnier
2014-11-10 22:02           ` package and testing rant (was Re: package.el, auto-installation, and auto-removal) Nic Ferrier
2014-11-10 23:24             ` Stefan Monnier
2014-11-11  2:53               ` Drew Adams
2014-11-11 11:41               ` Nic Ferrier
2014-11-11 16:03                 ` Eli Zaretskii
2014-11-11 17:17                   ` Nic Ferrier
2014-11-11 17:20                   ` Stefan Monnier
2014-11-11 17:53                     ` Eli Zaretskii
2014-11-11 16:24                 ` Stefan Monnier
2014-11-11 17:15                   ` Nic Ferrier
2014-11-11 15:57               ` Eli Zaretskii
2014-11-11 17:18                 ` Stefan Monnier
2014-11-11 17:52                   ` Eli Zaretskii
2014-11-11 18:04                     ` David Kastrup
2014-11-12  3:20                       ` Stephen J. Turnbull
2014-11-12  6:48                         ` David Kastrup
2014-11-11 17:27                 ` Nic Ferrier
2014-11-11 18:20               ` Achim Gratz
2014-11-12 16:13                 ` Stefan Monnier
2014-11-12 17:00                   ` Stephen Leake
2014-11-12 17:51                   ` Nic Ferrier
2014-11-12 20:34                     ` Stefan Monnier
2014-11-12 21:39                       ` Nic Ferrier
2014-11-12 22:40                         ` Stefan Monnier
2014-11-12 23:01                           ` Nic Ferrier
2014-11-12 23:31                             ` Stefan Monnier
2014-11-13  1:09                             ` Stephen J. Turnbull
2014-11-13  5:06                             ` Richard Stallman
2014-11-13 14:59                               ` Nic Ferrier
2014-11-15 17:09                             ` Stephen Leake
2014-11-15 18:20                               ` Nic Ferrier
2014-11-16  3:49                                 ` Stefan Monnier
2014-11-13  8:18                           ` Thien-Thi Nguyen
2014-11-13 10:53                         ` Phillip Lord
2014-11-13 14:54                           ` Nic Ferrier
2014-11-14 11:04                             ` Phillip Lord
2014-11-14 22:56                               ` Nic Ferrier
2014-11-12 18:15                   ` Achim Gratz
2014-11-12 22:21                     ` Stefan Monnier
2014-11-13 20:21                       ` Achim Gratz
2014-11-12 13:05               ` Stephen Leake
2014-11-11 13:30             ` Phillip Lord
2014-11-11 14:12               ` Nic Ferrier
2014-11-11 16:26                 ` Stefan Monnier
2014-11-11 17:13                   ` Nic Ferrier
2014-11-12 16:14                     ` Stefan Monnier
2014-11-12 17:02                       ` Stephen Leake
2014-11-12 17:21                         ` Stefan Monnier
2014-11-10 21:37       ` package.el, auto-installation, and auto-removal Stefan Monnier
2014-11-11  1:29         ` Ted Zlatanov
2014-11-11  2:26           ` Stefan Monnier
2014-11-11  2:59             ` Ted Zlatanov
2014-11-11  3:55               ` Stefan Monnier
2014-11-11 12:44                 ` Phillip Lord
2014-11-11 13:31                   ` Nic Ferrier
2014-11-11 11:31             ` Nic Ferrier
2014-11-11 16:22               ` Stefan Monnier
2014-11-11 17:10                 ` Nic Ferrier [this message]
2014-11-11 19:36                   ` Achim Gratz
2014-11-11 20:40                     ` Nic Ferrier
2014-11-11 21:53                       ` Stefan Monnier
2014-11-12 22:17                         ` Nic Ferrier
2014-11-12 22:59                           ` Stefan Monnier
2014-11-12 23:26                             ` Nic Ferrier
2014-11-13  0:21                               ` Stefan Monnier
2014-11-07 20:00 ` Nic Ferrier
2014-11-08  4:29   ` Stefan Monnier
2014-11-08 23:18     ` Nic Ferrier
2014-11-09  3:17       ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2014-11-11 20:55 Robert Dallas Gray
2014-11-11 21:34 ` Nic Ferrier
2014-11-13 10:46   ` Phillip Lord

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=871tp9k6hw.fsf@ferrier.me.uk \
    --to=nferrier@ferrier.me.uk \
    --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.