Function: recentf-push

recentf-push is a byte-compiled function defined in recentf.el.gz.

Signature

(recentf-push FILENAME)

Documentation

Push FILENAME into the recent list, if it isn't there yet.

If it is there yet, move it at the beginning of the list. If recentf-case-fold-search is non-nil, ignore case when comparing filenames.

Source Code

;; Defined in /usr/src/emacs/lisp/recentf.el.gz
;;; File functions
;;
(defun recentf-push (filename)
  "Push FILENAME into the recent list, if it isn't there yet.
If it is there yet, move it at the beginning of the list.
If `recentf-case-fold-search' is non-nil, ignore case when comparing
filenames."
  (let ((m (recentf-string-member filename recentf-list)))
    (and m (setq recentf-list (delq (car m) recentf-list)))
    (push filename recentf-list)))