From: Stefan Monnier <monnier@iro.umontreal.ca>
To: emacs-devel@gnu.org
Subject: Re: nadvice compatibility in package list
Date: Fri, 05 Jul 2019 17:03:51 -0400 [thread overview]
Message-ID: <jwvmuhsgpue.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: vz1lfxft35a.fsf@gmail.com
> (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).
So I think the patch below will do the trick as well.
Can you confirm?
Stefan
diff --git a/lisp/emacs-lisp/nadvice.el b/lisp/emacs-lisp/nadvice.el
index 2278e389ce..b0dd03edfd 100644
--- a/lisp/emacs-lisp/nadvice.el
+++ b/lisp/emacs-lisp/nadvice.el
@@ -4,7 +4,6 @@
;; Author: Stefan Monnier <monnier@iro.umontreal.ca>
;; Keywords: extensions, lisp, tools
-;; Package: emacs
;; 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
diff --git a/lisp/finder.el b/lisp/finder.el
index f95049f60b..ad9441210c 100644
--- a/lisp/finder.el
+++ b/lisp/finder.el
@@ -240,7 +240,8 @@ finder-compile-keywords
(lm-synopsis))
version (lm-header "version")))
(when summary
- (setq version (ignore-errors (version-to-list version)))
+ (setq version (or (ignore-errors (version-to-list version))
+ (alist-get package package--builtin-versions)))
(setq entry (assq package package--builtins))
(cond ((null entry)
(push (cons package
next prev parent reply other threads:[~2019-07-05 21:03 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 [this message]
2019-07-06 14:35 ` Andy Moreton
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvmuhsgpue.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--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 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.