# HG changeset patch # User Glenn Morris # Date 1220066750 0 # Node ID 68aa068f4c20d8ced68d0fb21c607d039fb02ecd # Parent 056f348c2bf40ca59cbed5a38071b79008cbfdcf (apropos-command): Ignore documentation errors. (Bug#825) diff -r 056f348c2bf4 -r 68aa068f4c20 lisp/apropos.el --- a/lisp/apropos.el Sat Aug 30 02:22:47 2008 +0000 +++ b/lisp/apropos.el Sat Aug 30 03:25:50 2008 +0000 @@ -489,7 +489,7 @@ (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)))