]> 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)
committerEli Zaretskii <eliz@gnu.org>
Sun, 30 Jul 2023 07:27:14 +0000 (10:27 +0300)
* 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.

(cherry picked from commit 024bd1f09099ae186442001a75e578638070e296)

lisp/help-fns.el

index be13d40cfa3105534be32d0147e24b2ab3806c30..eb50f3b26caa54b53c79fce5f2cb178f8f5c7dc8 100644 (file)
@@ -995,7 +995,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 t)))
+                     (or (car (function-alias-p real-function))
+                         real-function))
                    ((subrp def) (intern (subr-name def)))
                     (t def))))