summaryrefslogtreecommitdiff
path: root/lisp/apropos.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-12-29 06:55:23 +0000
committerRichard M. Stallman <rms@gnu.org>1993-12-29 06:55:23 +0000
commit128f2fc75d9d442c8e52ff87144d2a0946c40d33 (patch)
treed88e7754b46e92358196d291610268e9d3e00149 /lisp/apropos.el
parentfba8f8459764fab3a347f477cbc5c80594bde07d (diff)
downloademacs-128f2fc75d9d442c8e52ff87144d2a0946c40d33.tar.gz
(super-apropos-check-doc-file): Verify that the doc
string can actually be found from the symbol.
Diffstat (limited to 'lisp/apropos.el')
-rw-r--r--lisp/apropos.el11
1 files changed, 7 insertions, 4 deletions
diff --git a/lisp/apropos.el b/lisp/apropos.el
index 77f204ce874..8cc2940349d 100644
--- a/lisp/apropos.el
+++ b/lisp/apropos.el
@@ -153,10 +153,13 @@ Returns list of symbols and documentation found."
(1- (point))
(point))))
item (assq symbol sym-list))
- (or item
- (setq item (list symbol nil nil)
- sym-list (cons item sym-list)))
- (setcar (nthcdr type item) doc)))
+ (and (if (= type 1)
+ (documentation symbol)
+ (documentation-property symbol 'variable-documentation))
+ (or item
+ (setq item (list symbol nil nil)
+ sym-list (cons item sym-list)))
+ (setcar (nthcdr type item) doc))))
sym-list))
;; This is passed as the argument to map-atoms, so it is called once for every