+2005-03-19 Michael R. Mauger <mmaug@yahoo.com>
+
+ * recentf.el (recentf-cleanup-remote): New variable.
+ (recentf-cleanup): Use it to conditionally check availablity of
+ remote files.
+
2005-03-19 Joe Edmonds <joe-bugs-debian-org@elem.com> (tiny change)
* emacs-lisp/lisp-mode.el (lisp-mode-variables): Recognize `@' in
If it returns nil, the filename is left unchanged."
:group 'recentf
:type 'function)
+
+(defcustom recentf-cleanup-remote t
+ "*non-nil means to auto cleanup remote files."
+ :group 'recentf
+ :type 'boolean)
\f
;;; Utilities
;;
(message "Cleaning up the recentf list...")
(let (newlist)
(dolist (f recentf-list)
- (if (and (recentf-include-p f) (recentf-file-readable-p f))
+ (if (and (recentf-include-p f)
+ (or (and (file-remote-p f)
+ (not recentf-cleanup-remote))
+ (recentf-file-readable-p f)))
(push f newlist)
(message "File %s removed from the recentf list" f)))
(setq recentf-list (nreverse newlist))