diff options
| author | Juanma Barranquero | 2013-08-10 01:15:39 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2013-08-10 01:15:39 +0200 |
| commit | 5c5dee787e1443947c58a55e12ffc505b144c1fc (patch) | |
| tree | 5c9f215be16b13e89ae9baed7b3df220d5259e58 | |
| parent | 156aab806b31ee669f60c52bec821892d75f6c27 (diff) | |
| download | emacs-5c5dee787e1443947c58a55e12ffc505b144c1fc.tar.gz emacs-5c5dee787e1443947c58a55e12ffc505b144c1fc.zip | |
lisp/filecache.el (file-cache-delete-file-list): Print message only when told so.
(file-cache-files-matching): Use #' in mapconcat argument.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/filecache.el | 10 |
2 files changed, 8 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 39018853285..796ba3074e1 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2013-08-09 Juanma Barranquero <lekktu@gmail.com> | 1 | 2013-08-09 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 2 | ||
| 3 | * filecache.el (file-cache-delete-file-list): | ||
| 4 | Print message only when told so. | ||
| 5 | (file-cache-files-matching): Use #' in mapconcat argument. | ||
| 6 | |||
| 3 | * ffap.el (ffap-url-at-point): Fix reference to variable | 7 | * ffap.el (ffap-url-at-point): Fix reference to variable |
| 4 | thing-at-point-default-mail-uri-scheme. | 8 | thing-at-point-default-mail-uri-scheme. |
| 5 | 9 | ||
diff --git a/lisp/filecache.el b/lisp/filecache.el index ae3cb8d074a..69649e105bc 100644 --- a/lisp/filecache.el +++ b/lisp/filecache.el | |||
| @@ -453,8 +453,9 @@ message reporting the number of file names deleted." | |||
| 453 | (dolist (f files) | 453 | (dolist (f files) |
| 454 | (if (file-cache-delete-file f) | 454 | (if (file-cache-delete-file f) |
| 455 | (setq n (1+ n)))) | 455 | (setq n (1+ n)))) |
| 456 | (message "Filecache: uncached %d file name%s." | 456 | (when message |
| 457 | n (if (= n 1) "" "s")))) | 457 | (message "Filecache: uncached %d file name%s." |
| 458 | n (if (= n 1) "" "s"))))) | ||
| 458 | 459 | ||
| 459 | (defun file-cache-delete-file-regexp (regexp) | 460 | (defun file-cache-delete-file-regexp (regexp) |
| 460 | "Delete files matching REGEXP from the file cache." | 461 | "Delete files matching REGEXP from the file cache." |
| @@ -679,10 +680,7 @@ match REGEXP." | |||
| 679 | "*File Cache Files Matching*"))) | 680 | "*File Cache Files Matching*"))) |
| 680 | (erase-buffer) | 681 | (erase-buffer) |
| 681 | (insert | 682 | (insert |
| 682 | (mapconcat | 683 | (mapconcat #'identity results "\n")) |
| 683 | 'identity | ||
| 684 | results | ||
| 685 | "\n")) | ||
| 686 | (goto-char (point-min)) | 684 | (goto-char (point-min)) |
| 687 | (display-buffer buf))) | 685 | (display-buffer buf))) |
| 688 | 686 | ||