Commit 732795fa authored by Glenn Morris's avatar Glenn Morris
Browse files

recentf.el fix for bug#5843.

* lisp/recentf.el (recentf-include-p): In case of a buggy predicate,
err on the side of including, not excluding.
parent 0a5cb52b
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
......
......@@ -411,13 +411,14 @@ That is, if it doesn't match any of the `recentf-exclude' checks."
(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))
......
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