1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-25 10:47:00 +00:00

(apropos-command): Ignore documentation errors. (Bug#825)

This commit is contained in:
Glenn Morris 2008-08-30 03:25:50 +00:00
parent e77e9cf409
commit 7cb78ecd63

View File

@ -489,7 +489,7 @@ while a list of strings is used as a word list."
(setq score (apropos-score-symbol symbol))
(unless var-predicate
(if (fboundp symbol)
(if (setq doc (documentation symbol t))
(if (setq doc (ignore-errors (documentation symbol t)))
(progn
(setq score (+ score (apropos-score-doc doc)))
(substring doc 0 (string-match "\n" doc)))