* 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.
This commit is contained in:
Stefan Monnier 2019-03-08 17:27:38 -05:00
parent 76fdae8549
commit 01b099bb3d

View file

@ -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)))