Function: recentf-remove-if-non-kept

recentf-remove-if-non-kept is a byte-compiled function defined in recentf.el.gz.

Signature

(recentf-remove-if-non-kept FILENAME)

Documentation

Remove FILENAME from the recent list, if file is not kept.

Return non-nil if FILENAME has been removed.

Source Code

;; Defined in /usr/src/emacs/lisp/recentf.el.gz
(defsubst recentf-remove-if-non-kept (filename)
  "Remove FILENAME from the recent list, if file is not kept.
Return non-nil if FILENAME has been removed."
  (unless (recentf-keep-p filename)
    (let ((m (recentf-string-member
              (recentf-expand-file-name filename) recentf-list)))
      (and m (setq recentf-list (delq (car m) recentf-list))))))