]> code.delx.au - gnu-emacs/blobdiff - lisp/help-fns.el
* lisp/doc-view.el (doc-view-current-cache-dir): Beware % escapes.
[gnu-emacs] / lisp / help-fns.el
index 04bcc9c07633e37e6fc4b4d9c7ad2f200dacd77c..178096d1024a6a0b13ec31cb00a39802f763e00a 100644 (file)
@@ -76,7 +76,7 @@ DEF is the function whose usage we're looking for in DOCSTRING."
   (when (and docstring (string-match "\n\n(fn\\(\\( .*\\)?)\\)\\'" docstring))
     (cons (format "(%s%s"
                  ;; Replace `fn' with the actual function name.
-                 (if (consp def) "anonymous" def)
+                 (if (symbolp def) def "anonymous")
                  (match-string 1 docstring))
          (unless (zerop (match-beginning 0))
             (substring docstring 0 (match-beginning 0))))))