From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.devel Subject: Re: Supporting multiline Package-Requires header Date: Mon, 10 Aug 2015 22:49:00 +0100 Message-ID: <87si7qq0fn.fsf@russet.org.uk> References: <877fp3dxt2.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1439243368 16516 80.91.229.3 (10 Aug 2015 21:49:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 10 Aug 2015 21:49:28 +0000 (UTC) Cc: emacs-devel@gnu.org To: Thierry Volpiatto Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Aug 10 23:49:15 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZOuwU-0004gL-ST for ged-emacs-devel@m.gmane.org; Mon, 10 Aug 2015 23:49:15 +0200 Original-Received: from localhost ([::1]:60278 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOuwT-0003LS-UO for ged-emacs-devel@m.gmane.org; Mon, 10 Aug 2015 17:49:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40324) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOuwQ-0003LM-Ql for emacs-devel@gnu.org; Mon, 10 Aug 2015 17:49:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZOuwN-0004ik-JT for emacs-devel@gnu.org; Mon, 10 Aug 2015 17:49:10 -0400 Original-Received: from cheviot12.ncl.ac.uk ([128.240.234.12]:54002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZOuwN-0004ig-DP for emacs-devel@gnu.org; Mon, 10 Aug 2015 17:49:07 -0400 Original-Received: from smtpauth-vm.ncl.ac.uk ([10.8.233.129] helo=smtpauth.ncl.ac.uk) by cheviot12.ncl.ac.uk with esmtp (Exim 4.63) (envelope-from ) id 1ZOuwM-0003ov-B4; Mon, 10 Aug 2015 22:49:06 +0100 Original-Received: from cpc6-benw10-2-0-cust45.gate.cable.virginm.net ([92.238.179.46] helo=localhost) by smtpauth.ncl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.63) (envelope-from ) id 1ZOuwL-0000Cg-K3; Mon, 10 Aug 2015 22:49:06 +0100 In-Reply-To: <877fp3dxt2.fsf@gmail.com> (Thierry Volpiatto's message of "Mon, 10 Aug 2015 16:26:33 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 128.240.234.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:188710 Archived-At: Thierry Volpiatto writes: > Artur Malabarba writes: > >> I'd like to add support for multiline Package-Requires headers in >> package.el. Does anyone have any preference over the following 2 >> possible formats? > > I suggest keeping what we have actually for backward compatibility and > generalize the use of a *-pkg.el file with a define-package form even > for single file packages. I think actually, you have hit the nail on the head here. As others have pointed out, while this change is backward compatible (for package.el) actually using the format in a package is not backward compatible with older Emacs'. The package author can specify the minimal Emacs version, of course, but unfortunately this happens in the "Package-Requires:", which will be parsed incorrectly in older Emacs'. Instead of making Package-* headers more capable, deprecating them in favour of *-pkg.el files (which really is a sexp, has to balance, but is easy to check for balance) makes quite a lot of sense. Probably easier when you get right down to it. Phil