From: Stefan Monnier Date: Fri, 8 Mar 2019 22:27:38 +0000 (-0500) Subject: * lisp/emacs-lisp/autoload.el (make-autoload): Don't add useless doc X-Git-Tag: emacs-27.0.90~3455 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=01b099bb3db740d53f3e79f3183767b071ddf6f9;p=emacs.git * 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. --- diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index a369d972126..19e1e93621d 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)))