unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: David Reitter <david.reitter@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: package.el
Date: Mon, 21 May 2007 11:40:57 -0600	[thread overview]
Message-ID: <m3abvyvzva.fsf@fleche.redhat.com> (raw)
In-Reply-To: <F95D8D6E-F49B-483F-BF9A-C0FECEE469B5@gmail.com> (David Reitter's message of "Mon\, 21 May 2007 11\:17\:54 +0100")

>>>>> "David" == David Reitter <david.reitter@gmail.com> writes:

David> I just had a look at package.el. A few comments:

Thanks for your time and your feedback.

If emacs-devel folks don't like this traffic here we can move it
elsewhere.  `elpa@tromey.com' is my package.el address.

>> If you don't know what "eval" means, it means that you should copy
>> this into your *scratch* buffer, move your cursor just after the
>> final closing paren, and type C-j.

David> *scratch* is not guaranteed to be in emacs-lisp-mode. So C-j might
David> not work. M-x eval-region would!

I wasn't aware of this.  Is this a common situation?  Those
instructions are intended for people who know very little about Emacs;
are they likely to have changed the mode for *scratch*?

David> From your installer file:
David> (expand-file-name "~/.emacs.d/elpa")
David> please don't assume that this directory is something where you can
David> (or the user wants to) install things.

David> There should be a customization variable for this. This applies
David> to package.el itself as well, where you have a defvar, not a
David> defcustom, for package-user-dir.

Yes, I agree.  I don't know much about custom (my last emacs lisp
hacking experience predates the existence of custom -- sad but true).
But I will learn and I'll make the appropriate fix.

However, for the installer, I think this is an ok choice.  I don't see
how we would support customizing the package install directory before
actually installing package.el.  And, I suspect users who know about
and use features like this probably won't have much trouble hand
installing package.el.

What do you think about this?

David> In package.el, I'm not sure what's going on with `package-activated- 
David> list', but you seem to make assumptions about which packages are
David> installed by default.

Yes.  package.el knows a bit about which packages are shipped as part
of Emacs.  This supports one of the use cases I was interested in,
something I've run into a reasonable number of times.

The use case is this: suppose I install some package, for example ERC,
in my $HOME.  Then later I upgrade to Emacs 22, which includes ERC.
At this point I want my private ERC to be deactivated in favor of
Emacs' built-in version.  But then later I may upgrade to a later ERC,
in which case I want to use my newer private copy again.

In package.el this is solved by knowing the versions of large packages
which are included in Emacs.  This list isn't complete though -- known
bug.

David> Does your code also check for actually installed files?

Nope.  It could though, I think, perhaps not without drastically
slowing down Emacs startup.  I want to avoid that as much as possible.
I suppose my ideal situation here would be for distros to support
package.el directly (my real ideal was to get this into Emacs itself
but that is looking less likely :-).  This is intentionally not hard
to do... but I think it is still a bit early to approach them on this
topic.

Tom

  reply	other threads:[~2007-05-21 17:40 UTC|newest]

Thread overview: 146+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-09 19:56 CVS is the `released version' Robert J. Chassell
2007-05-09 19:59 ` Thomas Hühn
2007-05-10  2:00   ` Robert J. Chassell
2007-05-10  6:03     ` Thomas Hühn
2007-05-10 11:43       ` Robert J. Chassell
2007-05-10 11:47         ` David Kastrup
2007-05-10  6:58     ` David Kastrup
2007-05-10 11:58       ` Andrea Russo
2007-05-10 12:34         ` Thomas Hühn
2007-05-09 20:12 ` David Kastrup
2007-05-10  2:18 ` Chong Yidong
2007-05-10 18:24 ` Ken Manheimer
2007-05-10 19:05   ` Stefan Monnier
2007-05-11 18:48     ` Richard Stallman
2007-05-11 20:19       ` joakim
2007-05-12 16:47         ` Richard Stallman
2007-05-12 20:26           ` joakim
2007-05-13  8:49           ` Ryan Yeske
2007-05-13  9:38             ` David Kastrup
2007-05-13 11:28               ` Ralf Angeli
2007-05-13 12:53                 ` David Kastrup
2007-05-14  1:43               ` Tom Tromey
2007-05-14  8:09             ` Richard Stallman
2007-05-14 15:19               ` Tom Tromey
2007-05-14 18:29               ` Ryan Yeske
2007-05-16  2:23               ` Mike Mattie
2007-05-14  1:17           ` Tom Tromey
2007-05-14  5:06             ` Thien-Thi Nguyen
2007-05-14  6:47               ` David Kastrup
2007-05-14 15:07               ` Tom Tromey
2007-05-14 17:20                 ` Stefan Monnier
2007-05-14  6:41             ` David Kastrup
2007-05-14  8:02               ` joakim
2007-05-14 15:10               ` Tom Tromey
2007-05-14 18:41                 ` Ryan Yeske
2007-05-14 19:03                 ` Eli Zaretskii
2007-05-14 19:16                   ` Tom Tromey
2007-05-14 22:36                   ` Ryan Yeske
2007-05-16 15:46                   ` Stefan Monnier
2007-05-17 12:43                     ` David Kastrup
2007-05-17 14:17                       ` Stefan Monnier
2007-05-15 23:52                 ` thorne
2007-05-18 23:10             ` Richard Stallman
2007-05-18 23:31               ` Tom Tromey
2007-05-19 22:31                 ` Richard Stallman
2007-05-19 22:33                   ` Tom Tromey
2007-05-20 17:05                     ` Richard Stallman
2007-05-20 21:45                       ` Tom Tromey
2007-05-21  5:19                         ` David Kastrup
2007-05-21 10:33                         ` Richard Stallman
2007-05-21 10:46                           ` David Kastrup
2007-05-21 18:36                             ` JD Smith
2007-05-21 18:47                               ` David Kastrup
2007-05-21 18:51                               ` Chong Yidong
2007-05-21 19:02                                 ` David Kastrup
2007-05-22 14:52                                 ` Richard Stallman
2007-05-25 21:13                               ` Ken Manheimer
2007-05-25 21:24                                 ` Lennart Borgman (gmail)
2007-05-26  7:01                                 ` David Kastrup
2007-05-28  3:10                                   ` dhruva
2007-05-29  0:02                                     ` Richard Stallman
2007-05-29  6:21                                       ` dhruva
2007-05-29  9:30                                         ` Stephen J. Turnbull
2007-05-29 10:30                                           ` Frank Schmitt
2007-05-29 14:36                                             ` Stephen J. Turnbull
2007-05-29 14:45                                               ` Frank Schmitt
2007-05-29 17:49                                                 ` Stephen J. Turnbull
2007-05-29 22:00                                                   ` David Kastrup
2007-05-30 15:43                                                     ` Richard Stallman
2007-05-30 16:15                                                       ` joakim
2007-06-02 17:29                                                         ` Richard Stallman
2007-06-03  9:56                                                           ` Frank Schmitt
2007-05-30 15:44                                                   ` Richard Stallman
2007-05-30 21:55                                                     ` Frank Schmitt
2007-05-31 22:32                                                       ` Richard Stallman
2007-05-30  4:27                                         ` Richard Stallman
2007-06-03  3:23                                 ` Tom Tromey
2007-05-22  8:30                             ` Richard Stallman
2007-05-21 16:33                           ` Tom Tromey
2007-05-21 18:32                             ` CVS is the `released version' (ELL and the ohio lisp archive) Stephen Eglen
2007-05-24 21:22                             ` CVS is the `released version' Richard Stallman
2007-05-24 21:58                               ` New Extensions (was: Re: CVS is the `released version') Henrik Enberg
2007-05-24 21:22                             ` CVS is the `released version' Richard Stallman
2007-05-21 12:03                         ` Robert J. Chassell
2007-05-21 12:13                           ` David Kastrup
2007-05-21 12:45                           ` Stefan Monnier
2007-05-21 13:18                           ` jasonr
2007-05-21 15:39                             ` Robert J. Chassell
2007-05-22 10:10                               ` Stefan Monnier
2007-05-22 11:18                                 ` Robert J. Chassell
2007-05-22 13:36                                   ` David Kastrup
2007-05-22 15:19                                     ` Robert J. Chassell
2007-05-22 15:37                                       ` Jason Rumney
2007-05-22 15:12                                   ` Stefan Monnier
2007-05-22 17:24                                     ` Robert J. Chassell
2007-05-23 14:54                                       ` Stefan Monnier
2007-05-23 15:02                                       ` Jason Rumney
2007-05-23 19:08                                         ` Robert J. Chassell
2007-05-21  2:57                       ` Bob Rogers
2007-05-21 13:24                         ` Richard Stallman
2007-05-21 16:22                           ` Tom Tromey
2007-05-21 12:53                     ` Stefan Monnier
2007-05-21 16:41                       ` Tom Tromey
2007-05-21 19:40                         ` Stefan Monnier
2007-05-22  4:38                     ` Xavier Maillard
2007-05-20  7:54                   ` David Kastrup
2007-05-20 21:53                     ` Tom Tromey
2007-05-21  5:24                       ` David Kastrup
2007-05-21  5:53                         ` dhruva
2007-05-21  6:51                           ` David Kastrup
2007-05-21  8:47                         ` Stephen J. Turnbull
2007-05-21  9:22                           ` David Kastrup
2007-05-21 13:24                         ` Richard Stallman
2007-05-21 13:51                           ` David Kastrup
2007-05-24 21:22                             ` Richard Stallman
2007-05-21 10:17                       ` package.el (was: Re: CVS is the `released version') David Reitter
2007-05-21 17:40                         ` Tom Tromey [this message]
2007-05-21 18:13                           ` package.el David Kastrup
2007-05-21 22:43                           ` package.el David Reitter
2007-05-21 22:51                             ` package.el Tom Tromey
2007-05-21 23:48                               ` package.el Davis Herring
2007-05-21 23:56                                 ` package.el Lennart Borgman (gmail)
2007-05-25 21:39                                 ` package.el Tom Tromey
2007-05-27  1:00                                   ` package.el Richard Stallman
2007-05-21 23:50                               ` package.el David Reitter
2007-05-21 23:44                                 ` package.el Tom Tromey
2007-05-22  2:21                                   ` package.el Stephen J. Turnbull
2007-05-22 10:18                                   ` package.el Stefan Monnier
2007-05-21 22:57                             ` package.el David Kastrup
2007-05-20 22:05                     ` CVS is the `released version' Richard Stallman
2007-05-19 22:31                 ` Richard Stallman
2007-05-19 22:31                   ` Tom Tromey
2007-05-20 17:05                     ` Richard Stallman
2007-05-20 21:23                       ` Tom Tromey
2007-05-21 12:59                       ` Stefan Monnier
2007-05-21 13:03                         ` David Kastrup
2007-05-21 14:14                           ` Stefan Monnier
2007-05-21 16:50                         ` Tom Tromey
2007-05-22 14:51                           ` Richard Stallman
2007-05-22  6:10               ` Trent Buck
2007-05-22  7:56                 ` David Kastrup
2007-05-24 21:22                 ` Richard Stallman
2007-05-10 20:42   ` David Kastrup
2007-05-10 23:05 ` Lukasz Stafiniak
2007-05-10 23:23   ` Davis Herring
2007-05-11 12:31     ` Thien-Thi Nguyen

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3abvyvzva.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=david.reitter@gmail.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).