diff options
| author | Eli Zaretskii | 2005-03-19 14:10:46 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2005-03-19 14:10:46 +0000 |
| commit | 068f123a5fa3e72162b58b954658ba531f940dad (patch) | |
| tree | deb1d7287c5cb04703d45ceb304c8e17edc92df5 | |
| parent | 1b1556b11aa989ff31961e792b93421f59b9cb1c (diff) | |
| download | emacs-068f123a5fa3e72162b58b954658ba531f940dad.tar.gz emacs-068f123a5fa3e72162b58b954658ba531f940dad.zip | |
(recentf-cleanup-remote): New variable.
(recentf-cleanup): Use it to conditionally check availablity of
remote files.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/recentf.el | 10 |
2 files changed, 15 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f54f15b3e74..fd58d4e59d9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2005-03-19 Michael R. Mauger <mmaug@yahoo.com> | ||
| 2 | |||
| 3 | * recentf.el (recentf-cleanup-remote): New variable. | ||
| 4 | (recentf-cleanup): Use it to conditionally check availablity of | ||
| 5 | remote files. | ||
| 6 | |||
| 1 | 2005-03-19 Joe Edmonds <joe-bugs-debian-org@elem.com> (tiny change) | 7 | 2005-03-19 Joe Edmonds <joe-bugs-debian-org@elem.com> (tiny change) |
| 2 | 8 | ||
| 3 | * emacs-lisp/lisp-mode.el (lisp-mode-variables): Recognize `@' in | 9 | * emacs-lisp/lisp-mode.el (lisp-mode-variables): Recognize `@' in |
diff --git a/lisp/recentf.el b/lisp/recentf.el index 169fee99529..a6f3cf0bff7 100644 --- a/lisp/recentf.el +++ b/lisp/recentf.el | |||
| @@ -255,6 +255,11 @@ It is passed a filename to give a chance to transform it. | |||
| 255 | If it returns nil, the filename is left unchanged." | 255 | If it returns nil, the filename is left unchanged." |
| 256 | :group 'recentf | 256 | :group 'recentf |
| 257 | :type 'function) | 257 | :type 'function) |
| 258 | |||
| 259 | (defcustom recentf-cleanup-remote t | ||
| 260 | "*non-nil means to auto cleanup remote files." | ||
| 261 | :group 'recentf | ||
| 262 | :type 'boolean) | ||
| 258 | 263 | ||
| 259 | ;;; Utilities | 264 | ;;; Utilities |
| 260 | ;; | 265 | ;; |
| @@ -1169,7 +1174,10 @@ empty `file-name-history' with the recent list." | |||
| 1169 | (message "Cleaning up the recentf list...") | 1174 | (message "Cleaning up the recentf list...") |
| 1170 | (let (newlist) | 1175 | (let (newlist) |
| 1171 | (dolist (f recentf-list) | 1176 | (dolist (f recentf-list) |
| 1172 | (if (and (recentf-include-p f) (recentf-file-readable-p f)) | 1177 | (if (and (recentf-include-p f) |
| 1178 | (or (and (file-remote-p f) | ||
| 1179 | (not recentf-cleanup-remote)) | ||
| 1180 | (recentf-file-readable-p f))) | ||
| 1173 | (push f newlist) | 1181 | (push f newlist) |
| 1174 | (message "File %s removed from the recentf list" f))) | 1182 | (message "File %s removed from the recentf list" f))) |
| 1175 | (setq recentf-list (nreverse newlist)) | 1183 | (setq recentf-list (nreverse newlist)) |