Function: recentf-keep-default-predicate

recentf-keep-default-predicate is a byte-compiled function defined in recentf.el.gz.

Signature

(recentf-keep-default-predicate FILE)

Documentation

Return non-nil if FILE should be kept in the recent list.

It handles the case of remote files as well.

Source Code

;; Defined in /usr/src/emacs/lisp/recentf.el.gz
(defun recentf-keep-default-predicate (file)
  "Return non-nil if FILE should be kept in the recent list.
It handles the case of remote files as well."
  (cond
   ((file-remote-p file nil t) (file-readable-p file))
   ((file-remote-p file))
   ((file-readable-p file))))