* lisp/recentf.el (recentf-include-p): In case of a buggy predicate,
err on the side of including, not excluding.
+2011-03-04 Glenn Morris <rgm@gnu.org>
+
+ * recentf.el (recentf-include-p): In case of a buggy predicate,
+ err on the side of including, not excluding. (Bug#5843)
+
2011-03-04 Jay Belanger <jay.p.belanger@gmail.com>
* calc/calc-units.el (math-to-standard-rec): Don't treat subscripted
(checks recentf-exclude)
(keepit t))
(while (and checks keepit)
- (setq keepit (condition-case nil
- (not (if (stringp (car checks))
- ;; A regexp
- (string-match (car checks) filename)
- ;; A predicate
- (funcall (car checks) filename)))
- (error nil))
+ ;; If there was an error in a predicate, err on the side of
+ ;; keeping the file. (Bug#5843)
+ (setq keepit (not (ignore-errors
+ (if (stringp (car checks))
+ ;; A regexp
+ (string-match (car checks) filename)
+ ;; A predicate
+ (funcall (car checks) filename))))
checks (cdr checks)))
keepit))