]> git.eshelyaron.com Git - emacs.git/commitdiff
(apropos): Handle aliases for undefined functions.
authorRichard M. Stallman <rms@gnu.org>
Fri, 22 May 1998 06:29:05 +0000 (06:29 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 22 May 1998 06:29:05 +0000 (06:29 +0000)
lisp/apropos.el

index 90fa4309f1bd6c257618739f4e91f1eb71574a15..f726029c7ead57751047856506840c09ec2e7428 100644 (file)
@@ -227,7 +227,10 @@ Returns list of symbols and documentation found."
         (setcar p (list
                    (setq symbol (car p))
                    (when (fboundp symbol)
-                     (if (setq doc (documentation symbol t))
+                      (if (setq doc (condition-case nil
+                                        (documentation symbol t)
+                                      (void-function
+                                       "(alias for undefined function)")))
                          (substring doc 0 (string-match "\n" doc))
                        "(not documented)"))
                    (when (boundp symbol)