2008-08-30 Glenn Morris <rgm@gnu.org>
- * apropos.el (apropos-command): Ignore documentation errors.
+ * apropos.el (apropos-command): Report documentation errors.
* help-fns.el (describe-function-1): Handle broken aliases. (Bug#825)
2008-08-29 Chong Yidong <cyd@stupidchicken.com>
(setq score (apropos-score-symbol symbol))
(unless var-predicate
(if (fboundp symbol)
- (if (setq doc (ignore-errors (documentation symbol t)))
- (progn
+ (if (setq doc (condition-case nil
+ (documentation symbol t)
+ (error 'error)))
+ ;; Eg alias to undefined function.
+ (if (eq doc 'error)
+ "(documentation error)"
(setq score (+ score (apropos-score-doc doc)))
(substring doc 0 (string-match "\n" doc)))
"(not documented)")))