]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix an oversight in advice.el
authorMichael Heerdegen <michael_heerdegen@web.de>
Wed, 18 Jan 2023 11:32:05 +0000 (12:32 +0100)
committerEli Zaretskii <eliz@gnu.org>
Thu, 19 Jan 2023 20:13:25 +0000 (22:13 +0200)
This fixes an oversight from 77c3c464a16: "* lisp/emacs-lisp/advice.el
(ad-advised-functions): Make it a plain list" that caused an issue as
reported in Bug#60893.
* lisp/emacs-lisp/advice.el (ad-read-advised-function): Adjust to
handle the new type of elements of `ad-advised-functions'.

lisp/emacs-lisp/advice.el

index 080a6d84498d4ccd131e4d9179e7f62654d604b8..56f0ae2212c541f5cd96aa782236e4d176cba857 100644 (file)
@@ -1850,7 +1850,7 @@ function at point for which PREDICATE returns non-nil)."
           ad-advised-functions
           (if predicate
                (lambda (function)
-                 (funcall predicate (intern (car function)))))
+                 (funcall predicate (intern function))))
           t)))
     (if (equal function "")
        (if (ad-is-advised default)