[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master 01b099b: * lisp/emacs-lisp/autoload.el (make-autolo
From: |
Stefan Monnier |
Subject: |
[Emacs-diffs] master 01b099b: * lisp/emacs-lisp/autoload.el (make-autoload): Don't add useless doc |
Date: |
Fri, 8 Mar 2019 17:27:45 -0500 (EST) |
branch: master
commit 01b099bb3db740d53f3e79f3183767b071ddf6f9
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>
* lisp/emacs-lisp/autoload.el (make-autoload): Don't add useless doc
More specifically, don't add a useless '(fn)' to the docstring for
functions which take no arguments.
This should fix the 'No docstring slot for pcase--make-docstring'
warning during bootstrap.
---
lisp/emacs-lisp/autoload.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el
index a369d97..19e1e93 100644
--- a/lisp/emacs-lisp/autoload.el
+++ b/lisp/emacs-lisp/autoload.el
@@ -146,7 +146,7 @@ expression, in which case we want to handle forms
differently."
t))))
;; Add the usage form at the end where describe-function-1
;; can recover it.
- (when (listp args) (setq doc (help-add-fundoc-usage doc args)))
+ (when (consp args) (setq doc (help-add-fundoc-usage doc args)))
;; (message "autoload of %S" (nth 1 form))
`(autoload ,(nth 1 form) ,file ,doc ,interactive ,type)))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] master 01b099b: * lisp/emacs-lisp/autoload.el (make-autoload): Don't add useless doc,
Stefan Monnier <=