Function: recentf-keep-p
recentf-keep-p is a byte-compiled function defined in recentf.el.gz.
Signature
(recentf-keep-p FILENAME)
Documentation
Return non-nil if FILENAME should be kept in the recent list.
That is, if it matches any of the recentf-keep checks.
Source Code
;; Defined in /usr/src/emacs/lisp/recentf.el.gz
(defun recentf-keep-p (filename)
"Return non-nil if FILENAME should be kept in the recent list.
That is, if it matches any of the `recentf-keep' checks."
(let* ((case-fold-search recentf-case-fold-search)
(checks recentf-keep)
(keepit (null checks)))
(while (and checks (not keepit))
(setq keepit (condition-case nil
(if (stringp (car checks))
;; A regexp
(string-match (car checks) filename)
;; A predicate
(funcall (car checks) filename))
(error nil))
checks (cdr checks)))
keepit))