# HG changeset patch # User Karl Heuer # Date 822532615 0 # Node ID 96692e2ba1034a66bff1d5cc4f5ef262e9eccdf7 # Parent a5a7213294d98625f66cb338f288892b94bad2b1 (shadow-shadows, shadow-add-to-todo): Pass proper format string to message. (shadow-cancel, shadow-copy-file): Delete format call inside message. diff -r a5a7213294d9 -r 96692e2ba103 lisp/shadowfile.el --- a/lisp/shadowfile.el Thu Jan 25 01:16:14 1996 +0000 +++ b/lisp/shadowfile.el Thu Jan 25 01:16:55 1996 +0000 @@ -25,7 +25,7 @@ ;; LCD Archive Entry: ;; shadowfile|Boris Goldowsky|boris@gnu.ai.mit.edu| ;; Helps you keep identical copies of files in multiple places.| -;; $Date: 1995/10/30 17:23:17 $ |$Revision: 1.6 $|~/misc/shadowfile.el.Z| +;; $Date: 1996/01/14 07:34:30 $ |$Revision: 1.7 $|~/misc/shadowfile.el.Z| ;; Commentary: @@ -501,7 +501,8 @@ (let ((msg (shadow-join (mapcar (function cdr) (shadow-shadows-of (buffer-file-name))) " "))) - (message (if (zerop (length msg)) + (message "%s" + (if (zerop (length msg)) "No shadows." msg)))) @@ -539,8 +540,8 @@ (shadow-remove-from-todo pair))) shadow-files-to-copy '("shadow" "shadows" "cancel copy")) - (message (format "There are %d shadows to be updated." - (length shadow-files-to-copy))) + (message "There are %d shadows to be updated." + (length shadow-files-to-copy)) (shadow-write-todo-file)) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; @@ -582,8 +583,7 @@ (progn (write-region (point-min) (point-max) to) (shadow-remove-from-todo s)) - (error (message (format "Shadow %s not updated!" - (cdr s))))))))) + (error (message "Shadow %s not updated!" (cdr s)))))))) (defun shadow-shadows-of (file) "Returns copy operations needed to update FILE. @@ -634,8 +634,8 @@ (setq shadow-files-to-copy (shadow-union shadows shadow-files-to-copy)) (shadow-when (not shadow-inhibit-message) - (message (substitute-command-keys - "Use \\[shadow-copy-files] to update shadows.")) + (message "%s" (substitute-command-keys + "Use \\[shadow-copy-files] to update shadows.")) (sit-for 1)) (shadow-write-todo-file))) nil) ; Return nil for write-file-hooks