summaryrefslogtreecommitdiff
path: root/lisp/apropos.el
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-02-12 04:21:06 +0000
committerKarl Heuer <kwzh@gnu.org>1994-02-12 04:21:06 +0000
commita77310322ec8198da8003ec3da8c99068cd64983 (patch)
tree868468c4ad4b9d24682558ebda401c9e14b3a4ff /lisp/apropos.el
parent1cb4bd1c01b1c38a487efecd899a5b860abf9c6e (diff)
downloademacs-a77310322ec8198da8003ec3da8c99068cd64983.tar.gz
(super-apropos-check-doc-file): Don't attempt to retrieve function
documentation from a symbol with no function binding.
Diffstat (limited to 'lisp/apropos.el')
-rw-r--r--lisp/apropos.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/apropos.el b/lisp/apropos.el
index 8cc2940349d..d418be52273 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -154,7 +154,7 @@ Returns list of symbols and documentation found."
(point))))
item (assq symbol sym-list))
(and (if (= type 1)
- (documentation symbol)
+ (and (fboundp symbol) (documentation symbol))
(documentation-property symbol 'variable-documentation))
(or item
(setq item (list symbol nil nil)