]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix function help for advised aliases (bug#64797)
authorMattias Engdegård <mattiase@acm.org>
Thu, 27 Jul 2023 14:13:54 +0000 (16:13 +0200)
committerMattias Engdegård <mattiase@acm.org>
Thu, 27 Jul 2023 15:09:30 +0000 (17:09 +0200)
* lisp/help-fns.el (help-fns--analyze-function):
For aliases, use the base function name if at the end of the chain.
This fixes a regression introduced in d30fde6b0cc.

Reported by Michael Heerdegen.

lisp/help-fns.el

index b9388b453970cd49a65534ab4eac3d215199db6b..3dd5c79015705773d254611376d0004e8591a6aa 100644 (file)
@@ -1003,7 +1003,8 @@ Returns a list of the form (REAL-FUNCTION DEF ALIASED REAL-DEF)."
                                               (symbol-name function)))))))
         (real-def (cond
                     ((and aliased (not (subrp def)))
-                     (car (function-alias-p real-function)))
+                     (or (car (function-alias-p real-function))
+                         real-function))
                    ((subrp def) (intern (subr-name def)))
                     (t def))))