From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Strange requirement... Date: Tue, 25 Jul 2006 09:29:19 +0200 Message-ID: <85psfujg6o.fsf@lola.goethe.zz> References: <85slkrpk6k.fsf@lola.goethe.zz> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1153812597 20437 80.91.229.2 (25 Jul 2006 07:29:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Jul 2006 07:29:57 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 25 09:29:54 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G5HMW-000190-MA for ged-emacs-devel@m.gmane.org; Tue, 25 Jul 2006 09:29:52 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G5HMW-0005ja-60 for ged-emacs-devel@m.gmane.org; Tue, 25 Jul 2006 03:29:52 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G5HMK-0005hw-Ge for emacs-devel@gnu.org; Tue, 25 Jul 2006 03:29:40 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G5HMK-0005hd-64 for emacs-devel@gnu.org; Tue, 25 Jul 2006 03:29:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G5HMJ-0005ha-Ui for emacs-devel@gnu.org; Tue, 25 Jul 2006 03:29:39 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G5HNa-0007md-A1 for emacs-devel@gnu.org; Tue, 25 Jul 2006 03:30:58 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1G5HM1-00073P-Pt; Tue, 25 Jul 2006 03:29:22 -0400 Original-Received: by lola.goethe.zz (Postfix, from userid 1002) id B2BF91C4D3B9; Tue, 25 Jul 2006 09:29:19 +0200 (CEST) Original-To: rms@gnu.org In-Reply-To: (Richard Stallman's message of "Mon, 24 Jul 2006 17:50:01 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:57598 Archived-At: Richard Stallman writes: > This gives, however, no clue about how to deal with declaring versions > of an external package that is _not_ distributed as part of Emacs > (notably AUCTeX). > > You just follow the instructions for :package-version. > They seem clear to me. If you don't find them clear, > could you explain why? The last sentence of the :package-version description states: Packages that use the `:package-version' keyword must also update the `customize-package-emacs-version-alist' variable. And the immediately following description states: -- Variable: customize-package-emacs-version-alist This alist provides a mapping for the versions of Emacs that are associated with versions of a package listed in the `:package-version' keyword. Its elements look like this: (PACKAGE (PVERSION . EVERSION)...) For each PACKAGE, which is a symbol, there are one or more elements that contain a package version PVERSION with an associated Emacs version EVERSION. But for an external package, there is no associated Emacs version, so there is no point or sense in updating `customize-package-emacs-version-alist'. So I think that the last sentence in the :package-version description should be something like: Packages that use the `:package-version' keyword with versions that have been distributed as part of Emacs must also update the `customize-package-emacs-version-alist' variable. For example, the MH-E package updates this alist with the following: (add-to-list 'customize-package-emacs-version-alist '(MH-E ("6.0" . "22.1") ("6.1" . "22.1") ("7.0" . "22.1") ("7.1" . "22.1") ("7.2" . "22.1") ("7.3" . "22.1") ("7.4" . "22.1") ("8.0" . "22.1"))) And the passage before should probably be something like: `:package-version '(PACKAGE . VERSION)' This option specifies that the item was first introduced in PACKAGE version VERSION, or that its default value was changed in that version. This keyword takes priority over :version. The value of PACKAGE is a symbol and VERSION is a string. If any VERSION of PACKAGE has been distributed as part of Emacs, the combination of PACKAGE and VERSION must appear in the alist `customize-package-emacs-version-alist'. Since PACKAGE must be unique and the user might see it in an error message, a good choice is the official name of the package, such as MH-E or Gnus. Note that this is just my _guess_ as how to treat this sensibly. I don't know whether the actual code will complain if it can't find a given package and version in `customize-package-emacs-version-alist'. If it does, I think it should likely be changed to match the behavior I described. But as it stands, the instructions for :package-version can't be heeded for packages not distributed as part of Emacs. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum