diff options
Diffstat (limited to '')
| -rw-r--r-- | lisp/simple.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index e4629ce3db7..be64f3574e0 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -2703,15 +2703,14 @@ function as needed." | |||
| 2703 | (or (stringp doc) | 2703 | (or (stringp doc) |
| 2704 | (fixnump doc) (fixnump (cdr-safe doc)))))) | 2704 | (fixnump doc) (fixnump (cdr-safe doc)))))) |
| 2705 | (pcase function | 2705 | (pcase function |
| 2706 | ((pred byte-code-function-p) | 2706 | ((pred closurep) |
| 2707 | (when (> (length function) 4) | 2707 | (when (> (length function) 4) |
| 2708 | (let ((doc (aref function 4))) | 2708 | (let ((doc (aref function 4))) |
| 2709 | (when (funcall docstring-p doc) doc)))) | 2709 | (when (funcall docstring-p doc) doc)))) |
| 2710 | ((or (pred stringp) (pred vectorp)) "Keyboard macro.") | 2710 | ((or (pred stringp) (pred vectorp)) "Keyboard macro.") |
| 2711 | (`(keymap . ,_) | 2711 | (`(keymap . ,_) |
| 2712 | "Prefix command (definition is a keymap associating keystrokes with commands).") | 2712 | "Prefix command (definition is a keymap associating keystrokes with commands).") |
| 2713 | ((or `(lambda ,_args . ,body) `(closure ,_env ,_args . ,body) | 2713 | ((or `(lambda ,_args . ,body) `(autoload ,_file . ,body)) |
| 2714 | `(autoload ,_file . ,body)) | ||
| 2715 | (let ((doc (car body))) | 2714 | (let ((doc (car body))) |
| 2716 | (when (funcall docstring-p doc) | 2715 | (when (funcall docstring-p doc) |
| 2717 | doc))) | 2716 | doc))) |