changeset 53982:a8c5903da579

All message and error commands now use prefix `filecache:' to make it easy to read *Messages* buffer.
author Eli Zaretskii <eliz@is.elta.co.il>
date Mon, 16 Feb 2004 13:36:12 +0000
parents 08362d0e158a
children 30f8a717bfdf
files lisp/filecache.el
diffstat 1 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/filecache.el	Mon Feb 16 13:31:06 2004 +0000
+++ b/lisp/filecache.el	Mon Feb 16 13:36:12 2004 +0000
@@ -310,7 +310,7 @@
   "Add FILE to the file cache."
   (interactive "fAdd File: ")
   (if (not (file-exists-p file))
-      (message "File %s does not exist" file)
+      (message "Filecache: file %s does not exist" file)
     (let* ((file-name (file-name-nondirectory file))
 	   (dir-name  (file-name-directory    file))
 	   (the-entry (assoc-string
@@ -441,7 +441,8 @@
 		    (setq delete-list (cons (car elt) delete-list))))
 	    file-cache-alist)
     (file-cache-delete-file-list delete-list)
-    (message "Deleted %d files from file cache" (length delete-list))))
+    (message "Filecache: deleted %d files from file cache"
+             (length delete-list))))
 
 (defun file-cache-delete-directory (directory)
   "Delete DIRECTORY from the file cache."
@@ -454,8 +455,8 @@
 	    (setq result (1+ result))))
      file-cache-alist)
     (if (zerop result)
-	(error "No entries containing %s found in cache" directory)
-      (message "Deleted %d entries" result))))
+	(error "Filecache: no entries containing %s found in cache" directory)
+      (message "Filecache: deleted %d entries" result))))
 
 (defun file-cache-do-delete-directory (dir entry)
   (let ((directory-list (cdr entry))
@@ -488,14 +489,14 @@
 	 (num)
 	 )
     (if (not (listp directory-list))
-	(error "Unknown type in file-cache-alist for key %s" file))
+	(error "Filecache: unknown type in file-cache-alist for key %s" file))
     (cond
      ;; Single element
      ((eq 1 len)
       (setq directory (elt directory-list 0)))
      ;; No elements
      ((eq 0 len)
-      (error "No directory found for key %s" file))
+      (error "Filecache: no directory found for key %s" file))
      ;; Multiple elements
      (t
       (let* ((minibuffer-dir (file-name-directory (minibuffer-contents)))