aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1998-05-22 06:29:05 +0000
committerRichard M. Stallman1998-05-22 06:29:05 +0000
commitaf57e0fa0d6b924f15979fcc430782c44bba2aef (patch)
tree09a62f5b6bb5c5240f5ca7e26a090f74da49c2be
parent47414bc1e20d33147d489d294c5a71d7c876116b (diff)
downloademacs-af57e0fa0d6b924f15979fcc430782c44bba2aef.tar.gz
emacs-af57e0fa0d6b924f15979fcc430782c44bba2aef.zip
(apropos): Handle aliases for undefined functions.
-rw-r--r--lisp/apropos.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/apropos.el b/lisp/apropos.el
index 90fa4309f1b..f726029c7ea 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -227,7 +227,10 @@ Returns list of symbols and documentation found."
227 (setcar p (list 227 (setcar p (list
228 (setq symbol (car p)) 228 (setq symbol (car p))
229 (when (fboundp symbol) 229 (when (fboundp symbol)
230 (if (setq doc (documentation symbol t)) 230 (if (setq doc (condition-case nil
231 (documentation symbol t)
232 (void-function
233 "(alias for undefined function)")))
231 (substring doc 0 (string-match "\n" doc)) 234 (substring doc 0 (string-match "\n" doc))
232 "(not documented)")) 235 "(not documented)"))
233 (when (boundp symbol) 236 (when (boundp symbol)