-
-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Package-Requires
header can span multiple lines
#282
Comments
Does that also work in older Emacsen, e.g. back to 24? |
ie. is it valid syntax for |
This was added in e8c46c2b6f76cc055366041b6112d61dd5f2dcf4, see https://debbugs.gnu.org/cgi/bugreport.cgi?bug=36301. So the first Emacs release to support it is 27.1. Recently (bb5399e3cd75450db6db9b3c5829f7bd87ca1308, upcoming 30.1) this was moved to a new If a package specifies that it needs at least 27 or later, then multi-line |
I don't really agree — you can't guarantee that package headers won't be parsed by older Emacsen, and in those versions you want Emacs to say, "Emacs 27 is not installable", not "Malformed header". This is why we have a lint warning (error, even?) about |
It's not guaranteed that this won't happen, but it is fairly unlikely. Nowadays, Melpa (and [Non]GNU Elpa) generate a Old It's up to you of course, but I think this should downgraded to a warning. (This would be a non-issue if they started distributing new releases of |
In
magit.el
I use this, for example:(The trick is to put the open parenthesis on the same line as the keyword.)
With
package-lint
that results in:The text was updated successfully, but these errors were encountered: