Function: recentf-include-p
recentf-include-p is a byte-compiled function defined in
recentf.el.gz.
Signature
(recentf-include-p FILENAME)
Documentation
Return non-nil if FILENAME should be included in the recent list.
That is, if it doesn't match any of the recentf-exclude checks.
Source Code
;; Defined in /usr/src/emacs/lisp/recentf.el.gz
(defun recentf-include-p (filename)
"Return non-nil if FILENAME should be included in the recent list.
That is, if it doesn't match any of the `recentf-exclude' checks."
(let ((case-fold-search recentf-case-fold-search)
(checks recentf-exclude)
(keepit t))
(while (and checks keepit)
;; 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))