diff options
| author | Richard M. Stallman | 1993-12-29 06:55:23 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1993-12-29 06:55:23 +0000 |
| commit | 7c09e2e327c5317ee6fc3687cb7c512817a13954 (patch) | |
| tree | e3695c53e55ebade93260eec0b76204204c02878 | |
| parent | ca10c3d1d1ffcf991e7d45f56a11f8b6c2843b3a (diff) | |
| download | emacs-7c09e2e327c5317ee6fc3687cb7c512817a13954.tar.gz emacs-7c09e2e327c5317ee6fc3687cb7c512817a13954.zip | |
(super-apropos-check-doc-file): Verify that the doc
string can actually be found from the symbol.
| -rw-r--r-- | lisp/apropos.el | 11 |
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." | |||
| 153 | (1- (point)) | 153 | (1- (point)) |
| 154 | (point)))) | 154 | (point)))) |
| 155 | item (assq symbol sym-list)) | 155 | item (assq symbol sym-list)) |
| 156 | (or item | 156 | (and (if (= type 1) |
| 157 | (setq item (list symbol nil nil) | 157 | (documentation symbol) |
| 158 | sym-list (cons item sym-list))) | 158 | (documentation-property symbol 'variable-documentation)) |
| 159 | (setcar (nthcdr type item) doc))) | 159 | (or item |
| 160 | (setq item (list symbol nil nil) | ||
| 161 | sym-list (cons item sym-list))) | ||
| 162 | (setcar (nthcdr type item) doc)))) | ||
| 160 | sym-list)) | 163 | sym-list)) |
| 161 | 164 | ||
| 162 | ;; This is passed as the argument to map-atoms, so it is called once for every | 165 | ;; This is passed as the argument to map-atoms, so it is called once for every |