diff options
| author | Stefan Monnier | 2022-11-04 11:59:51 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2022-11-04 11:59:51 -0400 |
| commit | 616aa23d8a130a664a2ce3bb05f3518ce0f5a018 (patch) | |
| tree | fb4147e28cba32f95c99cecf771fe1e8bdd1ce5f | |
| parent | 5d6e919a90bc3ad3c73f9c6b20b25837d283af0e (diff) | |
| download | emacs-616aa23d8a130a664a2ce3bb05f3518ce0f5a018.tar.gz emacs-616aa23d8a130a664a2ce3bb05f3518ce0f5a018.zip | |
* lisp/simple.el (function-documentation): Fix bug#59014
| -rw-r--r-- | lisp/simple.el | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lisp/simple.el b/lisp/simple.el index e804f717b01..5f676ea50de 100644 --- a/lisp/simple.el +++ b/lisp/simple.el | |||
| @@ -2647,10 +2647,7 @@ function as needed." | |||
| 2647 | ((or `(lambda ,_args . ,body) `(closure ,_env ,_args . ,body) | 2647 | ((or `(lambda ,_args . ,body) `(closure ,_env ,_args . ,body) |
| 2648 | `(autoload ,_file . ,body)) | 2648 | `(autoload ,_file . ,body)) |
| 2649 | (let ((doc (car body))) | 2649 | (let ((doc (car body))) |
| 2650 | (when (and (funcall docstring-p doc) | 2650 | (when (funcall docstring-p doc) |
| 2651 | ;; Handle a doc reference--but these never come last | ||
| 2652 | ;; in the function body, so reject them if they are last. | ||
| 2653 | (or (cdr body) (eq 'autoload (car-safe function)))) | ||
| 2654 | doc))) | 2651 | doc))) |
| 2655 | (_ (signal 'invalid-function (list function)))))) | 2652 | (_ (signal 'invalid-function (list function)))))) |
| 2656 | 2653 | ||