]> git.eshelyaron.com Git - emacs.git/commitdiff
(describe-function-1): Accept non-symbols.
authorRichard M. Stallman <rms@gnu.org>
Tue, 16 Feb 1999 23:09:54 +0000 (23:09 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 16 Feb 1999 23:09:54 +0000 (23:09 +0000)
lisp/help.el

index 2120a2ce9f638d62c4381b7ee5442d520563e8a9..833239825e1b70695af47b99d1fd44b23a56e1a9 100644 (file)
@@ -600,7 +600,9 @@ It can also be nil, if the definition is not associated with any file."
     (message "You didn't specify a function")))
 
 (defun describe-function-1 (function parens)
-  (let* ((def (symbol-function function))
+  (let* ((def (if (symbolp function)
+                 (symbol-function function)
+               function))
         file-name string need-close
         (beg (if (commandp def) "an interactive " "a ")))
     (setq string