diff options
Diffstat (limited to 'lisp/help.el')
| -rw-r--r-- | lisp/help.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/help.el b/lisp/help.el index 0fb1c2dab77..bc7ee2c9b1b 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -1384,6 +1384,9 @@ If PRESERVE-NAMES is non-nil, return a formal arglist that uses | |||
| 1384 | the same names as used in the original source code, when possible." | 1384 | the same names as used in the original source code, when possible." |
| 1385 | ;; Handle symbols aliased to other symbols. | 1385 | ;; Handle symbols aliased to other symbols. |
| 1386 | (if (and (symbolp def) (fboundp def)) (setq def (indirect-function def))) | 1386 | (if (and (symbolp def) (fboundp def)) (setq def (indirect-function def))) |
| 1387 | ;; Advice wrappers have "catch all" args, so fetch the actual underlying | ||
| 1388 | ;; function to find the real arguments. | ||
| 1389 | (while (advice--p def) (setq def (advice--cdr def))) | ||
| 1387 | ;; If definition is a macro, find the function inside it. | 1390 | ;; If definition is a macro, find the function inside it. |
| 1388 | (if (eq (car-safe def) 'macro) (setq def (cdr def))) | 1391 | (if (eq (car-safe def) 'macro) (setq def (cdr def))) |
| 1389 | (cond | 1392 | (cond |