Function: recentf-add-file
recentf-add-file is a byte-compiled function defined in recentf.el.gz.
Signature
(recentf-add-file FILENAME)
Documentation
Add or move FILENAME at the beginning of the recent list.
Does nothing if the name satisfies any of the recentf-exclude
regexps or predicates.
Source Code
;; Defined in /usr/src/emacs/lisp/recentf.el.gz
(defun recentf-add-file (filename)
"Add or move FILENAME at the beginning of the recent list.
Does nothing if the name satisfies any of the `recentf-exclude'
regexps or predicates."
(setq filename (recentf-expand-file-name filename))
(when (recentf-include-p filename)
(recentf-push filename)))