From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Toby Cubitt Newsgroups: gmane.emacs.bugs Subject: bug#11410: 24.1.50; package.el `emacs' package information is broken Date: Sat, 5 May 2012 14:52:45 +0200 Message-ID: <20120505125245.GA24857@c3po.home> References: <20120505112424.GA7691@c3po.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1336235656 14546 80.91.229.3 (5 May 2012 16:34:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 5 May 2012 16:34:16 +0000 (UTC) Cc: 11410@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 05 18:34:13 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SQhvw-0001Db-Hc for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 May 2012 18:34:12 +0200 Original-Received: from localhost ([::1]:45844 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQhvv-0002Na-UG for geb-bug-gnu-emacs@m.gmane.org; Sat, 05 May 2012 12:34:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:53651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQht4-0001P8-Aw for bug-gnu-emacs@gnu.org; Sat, 05 May 2012 12:31:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SQht2-0007BD-5R for bug-gnu-emacs@gnu.org; Sat, 05 May 2012 12:31:13 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36289) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SQht2-0007B7-27 for bug-gnu-emacs@gnu.org; Sat, 05 May 2012 12:31:12 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1SQhun-0006eZ-W8 for bug-gnu-emacs@gnu.org; Sat, 05 May 2012 12:33:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Toby Cubitt Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 05 May 2012 16:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 11410 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 11410-submit@debbugs.gnu.org id=B11410.133623555925533 (code B ref 11410); Sat, 05 May 2012 16:33:01 +0000 Original-Received: (at 11410) by debbugs.gnu.org; 5 May 2012 16:32:39 +0000 Original-Received: from localhost ([127.0.0.1]:37321 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SQhuR-0006dm-Aj for submit@debbugs.gnu.org; Sat, 05 May 2012 12:32:39 -0400 Original-Received: from sanddollar.geekisp.com ([216.168.135.167]:23175) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1SQeVw-0001er-9n for 11410@debbugs.gnu.org; Sat, 05 May 2012 08:55:09 -0400 Original-Received: (qmail 12146 invoked by uid 1003); 5 May 2012 12:53:13 -0000 Original-Received: from localhost (localhost.geekisp.com [127.0.0.1]) by localhost.geekisp.com (tmda-ofmipd) with ESMTP; Sat, 05 May 2012 08:53:09 -0400 Content-Disposition: inline In-Reply-To: X-PGP-Key: http://www.dr-qubit.org/gpg-toby.asc User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.11 (Ladyburn) X-Primary-Address: toby@dr-qubit.org X-Mailman-Approved-At: Sat, 05 May 2012 12:32:37 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-Mailman-Approved-At: Sat, 05 May 2012 12:34:09 -0400 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:59786 Archived-At: On Sat, May 05, 2012 at 08:37:14AM -0400, Stefan Monnier wrote: > > The Elisp manual "Conventional Headers for Emacs Libraries" node says: > > The package code automatically defines a package named `emacs' > > with the version number of the currently running Emacs. This can > > be used to require a minimal version of Emacs for a package. > > BTW I highly doubt the usefulness of such a dependency. Package.el can > use dependencies to automatically download&update needed packages, but > it currently can't do that for `emacs', and in general it's can't do > that at all (the same set of installed packages might even be used by > different versions of Emacs). > > So such a dependency makes more sense as a load-time test (written in > Elisp directly in the package's code) rather than as > a package.el dependency. Surely the idea is for packages to refuse to even *install* under Emacs versions where they won't work (package.el displays an "emacs x.x not available" in this case.) As I understand it, with a load-time test package.el will still downland and install the package successfully, even though the package won't work. With the `emacs' version dependency, install will instead fail with an informative message. That seems like a useful feature to me. (Even more useful when the package in question is actually being installed as part of a chain of dependencies.) Toby -- Dr T. S. Cubitt Mathematics and Quantum Information group Department of Mathematics Complutense University Madrid, Spain email: tsc25@cantab.net web: www.dr-qubit.org