From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: Supporting multiline Package-Requires header Date: Tue, 11 Aug 2015 10:24:53 +0100 Message-ID: References: <877fp3dxt2.fsf@gmail.com> <87si7qq0fn.fsf@russet.org.uk> Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1439285101 3156 80.91.229.3 (11 Aug 2015 09:25:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Aug 2015 09:25:01 +0000 (UTC) Cc: emacs-devel , Thierry Volpiatto To: Phillip Lord Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 11 11:25:00 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 1ZP5no-0007Y5-36 for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2015 11:25:00 +0200 Original-Received: from localhost ([::1]:33493 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZP5nn-0003vd-Du for ged-emacs-devel@m.gmane.org; Tue, 11 Aug 2015 05:24:59 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZP5nj-0003vV-8t for emacs-devel@gnu.org; Tue, 11 Aug 2015 05:24:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZP5ni-0003nb-Br for emacs-devel@gnu.org; Tue, 11 Aug 2015 05:24:55 -0400 Original-Received: from mail-lb0-x236.google.com ([2a00:1450:4010:c04::236]:35363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZP5ni-0003nT-40 for emacs-devel@gnu.org; Tue, 11 Aug 2015 05:24:54 -0400 Original-Received: by lbcbn3 with SMTP id bn3so15119342lbc.2 for ; Tue, 11 Aug 2015 02:24:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=ulGTzP1xaGGjrcaElkVJM9vjTvio+PlH31oCIe3Y59c=; b=cb+G1iAaesxe6LbPFPOK5stSGkwr6OYsX2ehJYyGoNq6Eq5Eh4bG3/Mc9mAsc8XKt3 5mpl4Fd2HqFCxUxbhNas1Kmmwid5Now/z68sVF80jGMUBZFBhQOn8YMnmGhh2MQiRiar zgu+/nXWihFiqpvSe7pzWbiakHFDy/LH+yZyE7mXuYIPXe2aY5Vn4uas3Gc2YFNBEyFJ YmIpmm4L/eiEeRv+vLnKUzQiKggoXJS7BIPKlsaPuwRitvaklAEvrO28UkRwFRWp0M9P g0LVZfUogqO+jsWZ3/VJAI6d+c7ZJ+m4WEN42oE/NUlhdKSHh+L1uSwVn9/wRFCsf/mY 81QA== X-Received: by 10.152.6.102 with SMTP id z6mr24596678laz.95.1439285093265; Tue, 11 Aug 2015 02:24:53 -0700 (PDT) Original-Received: by 10.25.134.139 with HTTP; Tue, 11 Aug 2015 02:24:53 -0700 (PDT) In-Reply-To: <87si7qq0fn.fsf@russet.org.uk> X-Google-Sender-Auth: KmRuO48Uf-bDz7hNqPvzaLkI2KA X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::236 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:188719 Archived-At: >> I suggest keeping what we have actually for backward compatibility a >> 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'. As with any new feature. > 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'. Before a package is installed, the header is not being parsed by the user's computer, it is being parsed by the archive's server (be it Gelpa, Melpa or Marmalade). The archive's server should be using latest Emacs, and they'll know that the package requires Emacs 25, and they'll provide that information to the user during `list-packages'. (Even if the archive is using Emacs 24, or if the user tries to manually install the package, they'll be immediately greeted with an error, telling them something is wrong.) > 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. I'm not strongly against this, but I think it would be more of an annoyance than a benefit. I've never run into problems because of the fact that we use lisp headers for package information, so I don't see why we'd deprecate them. > Probably easier when you get right down to it. Easier than what? Extending the Package-Requires header would be something like 3-6 lines of code.