all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Artur Malabarba <bruce.connor.am@gmail.com>
To: Phillip Lord <phillip.lord@russet.org.uk>
Cc: emacs-devel <emacs-devel@gnu.org>,
	Thierry Volpiatto <thierry.volpiatto@gmail.com>
Subject: Re: Supporting multiline Package-Requires header
Date: Tue, 11 Aug 2015 10:24:53 +0100	[thread overview]
Message-ID: <CAAdUY-Ly7Yx9-btRY514k2G4H4FmincZmG-+ivOMnXM6QVC1tg@mail.gmail.com> (raw)
In-Reply-To: <87si7qq0fn.fsf@russet.org.uk>

>> 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.



  reply	other threads:[~2015-08-11  9:24 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-10 11:12 Supporting multiline Package-Requires header Artur Malabarba
2015-08-10 11:42 ` Kaushal
2015-08-10 11:59   ` Artur Malabarba
2015-08-10 12:05   ` Phillip Lord
2015-08-10 12:28     ` Artur Malabarba
2015-08-10 12:51       ` Phillip Lord
2015-08-10 13:08         ` Artur Malabarba
2015-08-10 13:54           ` Bozhidar Batsov
2015-08-10 15:22             ` Artur Malabarba
2015-08-11 21:05           ` Phillip Lord
2015-08-11 21:48             ` Artur Malabarba
2015-08-12  5:34               ` Bozhidar Batsov
2015-08-12 14:09               ` Stefan Monnier
2015-08-12 14:23                 ` Artur Malabarba
2015-08-12 17:18                   ` Stefan Monnier
2015-08-12 20:10                     ` Artur Malabarba
2015-08-13 18:13                     ` Artur Malabarba
2015-08-13 20:44                       ` Stefan Monnier
2015-08-13 22:37                         ` Rasmus
2015-08-13 23:01                           ` Artur Malabarba
2015-08-14  0:12                             ` Rasmus
2015-08-14  1:42                           ` Stefan Monnier
2015-08-17 18:45                             ` Achim Gratz
2015-08-18 15:56                               ` Stefan Monnier
2015-08-18 18:00                                 ` Achim Gratz
2015-08-19 17:14                                   ` Stefan Monnier
2015-08-23  6:33                         ` Achim Gratz
2015-08-23  9:17                           ` Artur Malabarba
2015-08-23  9:37                             ` Achim Gratz
2015-08-23 12:03                               ` Artur Malabarba
2015-08-23 22:17                               ` Stefan Monnier
2015-08-23 22:12                             ` Stefan Monnier
2015-08-23 23:32                               ` Artur Malabarba
2015-08-23 22:16                           ` Stefan Monnier
2015-08-24  6:56                             ` Achim Gratz
2015-08-24 19:17                               ` Stefan Monnier
2015-08-24 19:32                                 ` Achim Gratz
2015-08-24 22:51                                   ` Artur Malabarba
2015-08-25  5:44                                     ` Achim Gratz
2015-08-10 14:26 ` Thierry Volpiatto
2015-08-10 15:18   ` Artur Malabarba
2015-08-10 15:38     ` Thierry Volpiatto
2015-08-10 15:53       ` Artur Malabarba
2015-08-10 16:33         ` Thierry Volpiatto
2015-08-10 15:40     ` Nicolas Richard
2015-08-10 15:49       ` Artur Malabarba
2015-08-11  8:44         ` Nicolas Richard
2015-08-11  9:28           ` Artur Malabarba
2015-08-11  9:33             ` Nicolas Richard
2015-08-10 16:34       ` Thierry Volpiatto
2015-08-10 21:49   ` Phillip Lord
2015-08-11  9:24     ` Artur Malabarba [this message]
2015-08-10 22:05   ` Stefan Monnier
2015-08-11  8:56     ` Thierry Volpiatto
2015-08-11 15:55       ` Stefan Monnier
2015-08-10 22:01 ` Stefan Monnier
2015-08-11  9:29   ` Artur Malabarba

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

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

  git send-email \
    --in-reply-to=CAAdUY-Ly7Yx9-btRY514k2G4H4FmincZmG-+ivOMnXM6QVC1tg@mail.gmail.com \
    --to=bruce.connor.am@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=phillip.lord@russet.org.uk \
    --cc=thierry.volpiatto@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.