mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
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.
This commit is contained in:
parent
0a5cb52bb4
commit
732795fa27
2 changed files with 13 additions and 7 deletions
|
|
@ -1,3 +1,8 @@
|
|||
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))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue