From: Andy Moreton <andrewjmoreton@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: nadvice compatibility in package list
Date: Sat, 06 Jul 2019 15:35:02 +0100 [thread overview]
Message-ID: <864l3z2pux.fsf@gmail.com> (raw)
In-Reply-To: jwvmuhsgpue.fsf-monnier+emacs@gnu.org
On Fri 05 Jul 2019, Stefan Monnier wrote:
>> (assoc 'nadvice package--builtin-versions)
>> => (nadvice 1 0)
>
> This is right.
>
>> (assoc 'nadvice package--builtins)
>> => nil
>
> This is wrong.
>
> Thomas Fitzsimmons <fitzsim@fitzsim.org> writes:
>> diff --git a/lisp/emacs-lisp/nadvice.el b/lisp/emacs-lisp/nadvice.el
>> index 2278e389ce..ffecb24b1a 100644
>> --- a/lisp/emacs-lisp/nadvice.el
>> +++ b/lisp/emacs-lisp/nadvice.el
>> @@ -3,8 +3,11 @@
>> ;; Copyright (C) 2012-2019 Free Software Foundation, Inc.
>>
>> ;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
>> +;; Note: Always keep this built-in nadvice version greater than any
>> +;; nadvice version that has been or ever will be in GNU ELPA.
>> +;; Version: 10.0.0
>> ;; Keywords: extensions, lisp, tools
>> -;; Package: emacs
>> +;; Package: nadvice
>>
>> ;; This program is free software; you can redistribute it and/or modify
>> ;; it under the terms of the GNU General Public License as published by
>
> We already have defined its version as 1.0, so it would be better to
> keep it that way. I think the only thing that really matters is to
> remove the `Package: emacs` line (which is a line that explicitly
> *prevents* the file from being considered as a package in its own
> right).
The patch above works:
(assoc 'nadvice package--builtin-versions)
=> (nadvice 1 0)
(assoc 'nadvice package--builtins)
=> (nadvice . [(10 0 0) nil "Light-weight advice primitives for Elisp functions"])
The `list-packages' output shows two nadvice packages:
nadvice 0.3 available gnu Forward compatibility for Emacs-24.4's nadvice
nadvice 10.0.0 built-in Light-weight advice primitives for Elisp functions
> So I think the patch below will do the trick as well.
> Can you confirm?
Stefan, your patch gives the right assoc lookups, but does not show the
builtin nadvice package in the output from `list-packages'.
In general, omitting the "Package:" directive is a little too subtle,
and future maintainers may add it back, assuming it was an unintended
omission rather than a deliberate change.
To test each patch I deleted lisp/finder-inf.el before rebuilding. Let
me know if this is insufficient for a correct rebuild.
AndyM
next prev parent reply other threads:[~2019-07-06 14:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-07-03 17:54 nadvice compatibility in package list Andy Moreton
2019-07-04 21:44 ` Thomas Fitzsimmons
2019-07-05 21:03 ` Stefan Monnier
2019-07-06 14:35 ` Andy Moreton [this message]
2019-07-06 16:39 ` Stefan Monnier
2019-07-06 18:15 ` Andy Moreton
2019-07-07 13:05 ` Stefan Monnier
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=864l3z2pux.fsf@gmail.com \
--to=andrewjmoreton@gmail.com \
--cc=emacs-devel@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).