all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ted Zlatanov <tzz@lifelogs.com>
To: emacs-devel@gnu.org
Subject: Re: Integrating package.el
Date: Thu, 04 Mar 2010 14:39:09 -0600	[thread overview]
Message-ID: <87r5nzkej6.fsf@lifelogs.com> (raw)
In-Reply-To: jwvlje8c5pd.fsf-monnier+emacs@gnu.org

On Thu, 04 Mar 2010 13:29:49 -0500 Stefan Monnier <monnier@iro.umontreal.ca> wrote: 

SM> I want to be able to install all kinds of versions in a single spot
SM> so I can quickly see which versions are available.  This said, I
SM> agree that allowing several install locations is desirable.

SM> Actually the "install" part of the code should be able to install
SM> a package *anywhere*.  Similarly, the activation of a package
SM> (i.e. setting up the autoloads) should be doable from a package located
SM> anywhere.

SM> It doesn't need to be part of the visible UI, but there should be
SM> a command like M-x package-install that takes a file name (a single .el
SM> file or a tarball) and a target directory (defaults to the main "install
SM> location") and installs it there.

SM> The only part that really needs to know about "install locations" is the
SM> part that lets you list all the installed packages, deinstall some of
SM> them, setup/remove activation for some of them, etc...

On Thu, 04 Mar 2010 11:30:26 -0700 Tom Tromey <tromey@redhat.com> wrote: 

Tom> You need multiple install locations to let package.el manage additions
Tom> in site-lisp, and also (maybe -- there are some questions here) the
Tom> load-path for packages which are included with Emacs but also released
Tom> separately.

Tom> So suppose Emacs starts up and sees, say, 3 versions of gnus: one
Tom> included in Emacs, one in site-lisp, and one in ~/.emacs.d/elpa/.
Tom> Which one should be activated?

Tom> Right now the obvious answer would be the newest one -- but Stefan wants
Tom> to let the user pick a specific one.  So, I think we'll need a bit of
Tom> additional metadata about this.

How about letting the user define his own install location for each
repository, but with a sensible default?  The location could also be
tagged with a "is it versioned?" boolean.  While installing may not be
possible into every location, the user will be able to activate whatever
is installed in any location.

For example:

ELPA's Gnus defaults to ~/.emacs.d/elpa
(from repository "ELPA", versioned to $location/gnus-x.yz )

Emacs' Gnus defaults to /usr/local/share/emacs/23.1/lisp
(from repository "emacs 23.1", unversioned to $location/gnus)

site's Gnus is set by user to /usr/local/share/oursite/lisp
(from user-defined repository "oursite", unversioned to $location/gnus)

So then "package-install" without a specific repository will pick the
first repository in the package-archives list and try to write to it.
If it fails, that's an error.  Similarly for package removal.

With a specific repository, both install and remove go to the specific
location set by the user.  Yes, unversioned install locations will cause
conflicts, but they are necessary to make this backwards compatible.

So then resolving the question of multiple installs will actually be

"Do you want to pick the ELPA Gnus [in ...], the Emacs 23.1 Gnus 
[in ...], the oursite Gnus [in ...], or this CVS checkout we found in
~/gnus/lisp because it was in your load-path?"

IOW, the user would choose between repository install locations
(represented by the name of the repository) and unmanaged paths to
resolve the conflict.  Would that work?

Ted





  parent reply	other threads:[~2010-03-04 20:39 UTC|newest]

Thread overview: 130+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-26  2:55 Autoload from a web page? Lennart Borgman
2009-12-27  3:13 ` Richard Stallman
2009-12-27  3:24   ` Lennart Borgman
2009-12-28 18:48     ` Richard Stallman
2009-12-28 18:55       ` Lennart Borgman
2009-12-29  1:32         ` Stephen J. Turnbull
2009-12-29  1:39           ` Lennart Borgman
2009-12-29  2:45         ` joakim
2009-12-29  2:54           ` Lennart Borgman
2009-12-29  4:52             ` Tom Tromey
2009-12-29 22:25               ` Lennart Borgman
2009-12-30  6:13                 ` Richard Stallman
2009-12-30 18:06                 ` Jonas Bernoulli
2009-12-30 18:30                   ` Stefan Monnier
2009-12-30 19:10                     ` Jonas Bernoulli
2010-01-01  0:40                     ` Phil Hagelberg
2010-01-01 19:27                     ` Tom Tromey
2010-01-01 19:26                   ` Tom Tromey
2010-01-04 18:12                   ` Ted Zlatanov
2009-12-29 15:11           ` Ted Zlatanov
2009-12-29 18:46             ` Richard Stallman
2009-12-29 21:14               ` unsupported packages area in the Emacs repo (was: Autoload from a web page?) Ted Zlatanov
2009-12-29 21:21                 ` Deniz Dogan
2009-12-29 21:38                   ` unsupported packages area in the Emacs repo Ted Zlatanov
2009-12-29 21:36                 ` Tom Tromey
2009-12-30 16:15                   ` Ted Zlatanov
2009-12-31  5:32                     ` Phil Hagelberg
2010-01-01 19:18                     ` Tom Tromey
2010-01-03  5:38                       ` Integrating package.el (was Re: unsupported packages area in the Emacs repo) Phil Hagelberg
2010-01-04 17:55                         ` Integrating package.el Ted Zlatanov
2010-01-04 19:51                           ` Tom Tromey
2010-01-05  5:02                             ` Phil Hagelberg
2010-01-05  5:37                               ` Lennart Borgman
2010-01-05 15:06                                 ` Stefan Monnier
2010-01-05 16:03                                   ` Ted Zlatanov
2010-01-05 16:47                                     ` Stefan Monnier
2010-01-05 20:18                                       ` Ted Zlatanov
2010-01-05 23:50                                         ` Jonas Bernoulli
2010-01-06 20:45                                           ` Richard Stallman
2010-01-06 21:49                                             ` Ted Zlatanov
2010-01-09  5:40                                       ` Phil Hagelberg
2010-01-09 14:32                                         ` Richard Stallman
2010-01-09 17:47                                           ` Phil Hagelberg
2010-01-10 10:41                                             ` Richard Stallman
2010-01-10 11:33                                               ` Stephen J. Turnbull
2010-01-10 14:04                                                 ` Chong Yidong
2010-01-10 16:00                                                   ` joakim
2010-01-10 20:43                                                     ` Phil Hagelberg
2010-01-10 20:07                                                   ` Phil Hagelberg
2010-01-10 21:24                                                     ` Stefan Monnier
2010-01-10 23:02                                                       ` Phil Hagelberg
2010-01-11  3:28                                                         ` Stefan Monnier
2010-01-14  3:12                                                           ` Phil Hagelberg
2010-01-19 11:40                                                         ` Phil Hagelberg
2010-01-19 17:17                                                           ` Dan Nicolaescu
2010-02-22 19:22                                                           ` Ted Zlatanov
2010-02-22 20:36                                                             ` joakim
2010-02-23 22:25                                                             ` Stefan Monnier
2010-02-24 21:20                                                               ` Ted Zlatanov
2010-02-25 20:05                                                                 ` Stefan Monnier
2010-03-01 14:59                                                                   ` Ted Zlatanov
2010-03-01 16:32                                                                     ` Jonas Bernoulli
2010-03-01 17:14                                                                       ` Ted Zlatanov
2010-03-01 20:59                                                                         ` Jonas Bernoulli
2010-03-02 17:39                                                                         ` Richard Stallman
2010-03-02 18:46                                                                           ` Ted Zlatanov
2010-03-01 21:19                                                                     ` Stefan Monnier
2010-03-02 13:34                                                                       ` Ted Zlatanov
2010-03-01 21:37                                                                     ` Jonas Bernoulli
2010-03-01 22:18                                                                       ` Štěpán Němec
2010-03-01 22:30                                                                         ` Štěpán Němec
2010-03-01 23:00                                                                         ` Jonas Bernoulli
2010-03-02 13:38                                                                       ` Ted Zlatanov
2010-03-03 20:13                                                                         ` Tom Tromey
2010-03-04  5:42                                                                           ` Phil Hagelberg
2010-03-02 19:03                                                                       ` Davis Herring
2010-02-25 22:56                                                               ` David De La Harpe Golden
2010-03-04  5:39                                                             ` Phil Hagelberg
2010-03-04  7:29                                                               ` Stephen J. Turnbull
2010-03-04 18:27                                                                 ` Stefan Monnier
2010-03-05  4:41                                                                   ` Stephen J. Turnbull
2010-03-04 13:54                                                               ` Ted Zlatanov
2010-03-04 18:29                                                               ` Stefan Monnier
2010-03-04 18:33                                                                 ` Tom Tromey
2010-03-07 22:58                                                                   ` Phil Hagelberg
2010-03-04 20:39                                                                 ` Ted Zlatanov [this message]
2010-03-07 23:16                                                                 ` Phil Hagelberg
2010-03-08  3:17                                                                   ` Tom Tromey
2010-03-08 14:55                                                                     ` Ted Zlatanov
2010-03-08 17:01                                                                       ` Stefan Monnier
2010-03-08 17:53                                                                         ` Ted Zlatanov
2010-03-04 18:30                                                               ` Tom Tromey
2010-03-05  0:22                                                                 ` Stefan Monnier
2010-03-01 14:43                                                           ` Ted Zlatanov
2010-03-01 16:26                                                             ` Jonas Bernoulli
2010-03-01 17:28                                                               ` Ted Zlatanov
2010-03-01 18:06                                                                 ` Tom Tromey
2010-03-01 21:22                                                                   ` Jonas Bernoulli
2010-03-03 20:15                                                                     ` Tom Tromey
2010-03-03 20:22                                                                       ` Ted Zlatanov
2010-03-03 22:21                                                                         ` Tom Tromey
2010-03-02 13:31                                                                   ` Ted Zlatanov
2010-03-01 21:09                                                                 ` Jonas Bernoulli
2010-01-11  3:09                                                   ` Stephen J. Turnbull
2010-01-12 20:06                                         ` Ted Zlatanov
2010-01-12 21:37                                           ` Phil Hagelberg
2010-01-05 15:50                             ` Ted Zlatanov
2010-01-05 16:42                               ` Stefan Monnier
2010-01-05 17:51                                 ` Installation, activation and setup of packages (e.g. Gnus) (was: Integrating package.el) Ted Zlatanov
2010-01-05 19:43                                   ` Installation, activation and setup of packages (e.g. Gnus) Stefan Monnier
2010-01-05 22:28                                     ` Gnus encouragement of GMail (was: Installation, activation and setup of packages (e.g. Gnus)) Ted Zlatanov
2010-01-05 17:27                               ` Installation, activation and setup of packages (e.g. Gnus) (was: Integrating package.el) Reiner Steib
2010-01-05 18:03                               ` Integrating package.el Phil Hagelberg
2010-01-05 18:40                                 ` Ted Zlatanov
2010-01-05 19:14                               ` Tom Tromey
2010-01-05 20:04                                 ` Ted Zlatanov
2010-01-05 23:19                                   ` Tom Tromey
2010-01-06 15:42                                     ` Ted Zlatanov
2009-12-30 17:16                   ` unsupported packages area in the Emacs repo Jonas Bernoulli
2010-01-01 19:21                     ` Tom Tromey
2009-12-29  5:22         ` Autoload from a web page? Richard Stallman
2009-12-29  5:29           ` Lennart Borgman
2010-01-02 15:45             ` Richard Stallman
2010-01-04  2:26               ` Lennart Borgman
2010-01-04 16:23                 ` Richard Stallman
2009-12-29 17:05 ` Stefan Monnier
2009-12-30 16:30   ` Ted Zlatanov
2009-12-30 16:58     ` Stefan Monnier
2009-12-30 17:08       ` Lennart Borgman
  -- strict thread matches above, loose matches on Subject: below --
2010-01-10 22:06 Integrating package.el MON KEY

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=87r5nzkej6.fsf@lifelogs.com \
    --to=tzz@lifelogs.com \
    --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.