]> code.delx.au - gnu-emacs/commitdiff
(shadow-copy-files): Use interactive-p
authorRichard M. Stallman <rms@gnu.org>
Wed, 27 Oct 2004 17:41:24 +0000 (17:41 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 27 Oct 2004 17:41:24 +0000 (17:41 +0000)
only to control whether to print a message.

lisp/shadowfile.el

index f047223cbaed24529606bd9e1f3e7844ff1919e4..b3149500ae5369569f3f55b4362cdad76ff94c2b 100644 (file)
@@ -518,8 +518,9 @@ Pending copies are stored in variable `shadow-files-to-copy', and in
 `shadow-save-buffers-kill-emacs', so it is not usually necessary to
 call it manually."
   (interactive "P")
-  (if (and (not shadow-files-to-copy) (interactive-p))
-      (message "No files need to be shadowed.")
+  (if (not shadow-files-to-copy)
+      (if (interactive-p)
+         (message "No files need to be shadowed."))
     (save-excursion
       (map-y-or-n-p (function
                     (lambda (pair)