Commit 7cb78ecd authored by Glenn Morris's avatar Glenn Morris
Browse files

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

parent e77e9cf4
......@@ -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)))
(setq score (+ score (apropos-score-doc doc)))
(substring doc 0 (string-match "\n" doc)))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment