Function: recentf-auto-cleanup
recentf-auto-cleanup is a byte-compiled function defined in
recentf.el.gz.
Signature
(recentf-auto-cleanup)
Documentation
Automatic cleanup of the recent list.
Probably introduced at or before Emacs version 22.1.
Source Code
;; Defined in /usr/src/emacs/lisp/recentf.el.gz
(defun recentf-auto-cleanup ()
"Automatic cleanup of the recent list."
(when (timerp recentf-auto-cleanup-timer)
(cancel-timer recentf-auto-cleanup-timer)
(setq recentf-auto-cleanup-timer nil))
(when recentf-mode
(setq recentf-auto-cleanup-timer
(cond
((eq 'mode recentf-auto-cleanup)
(recentf-cleanup)
nil)
((numberp recentf-auto-cleanup)
(run-with-idle-timer
recentf-auto-cleanup t #'recentf-cleanup))
((stringp recentf-auto-cleanup)
(run-at-time
;; Repeat every 24 hours.
recentf-auto-cleanup (* 24 60 60) #'recentf-cleanup))))))