]> code.delx.au - gnu-emacs/commitdiff
* lisp/emacs-lisp/nadvice.el (advice--make-docstring):
authorGlenn Morris <rgm@gnu.org>
Mon, 13 Jun 2016 22:18:34 +0000 (18:18 -0400)
committerGlenn Morris <rgm@gnu.org>
Mon, 13 Jun 2016 22:18:34 +0000 (18:18 -0400)
Avoid mangling autoloads with unspecified arguments.  (Bug#21299)

lisp/emacs-lisp/nadvice.el

index 1d4c3f0586ca9aea80deadc5b3214b42fdc920e3..1b30499bf19f281157b6cedacffbafc4e78cc3ff 100644 (file)
@@ -114,7 +114,10 @@ Each element has the form (WHERE BYTECODE STACK) where:
            (usage (help-split-fundoc origdoc function)))
       (setq usage (if (null usage)
                       (let ((arglist (help-function-arglist flist)))
-                        (help--make-usage-docstring function arglist))
+                        ;; "[Arg list not available until function
+                        ;; definition is loaded]", bug#21299
+                        (if (stringp arglist) t
+                          (help--make-usage-docstring function arglist)))
                     (setq origdoc (cdr usage)) (car usage)))
       (help-add-fundoc-usage (concat docstring origdoc) usage))))