diff options
| author | Richard M. Stallman | 2004-10-27 17:41:24 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-10-27 17:41:24 +0000 |
| commit | 4f8e58ec5f5762dcd79e944ee135c4bb150b425c (patch) | |
| tree | 782c470c8a12af4ef6a8e5fadbab7bd6dfb73f8c | |
| parent | bea824fdf3bb58d11c883c3656d2bbaf23ea109c (diff) | |
| download | emacs-4f8e58ec5f5762dcd79e944ee135c4bb150b425c.tar.gz emacs-4f8e58ec5f5762dcd79e944ee135c4bb150b425c.zip | |
(shadow-copy-files): Use interactive-p
only to control whether to print a message.
| -rw-r--r-- | lisp/shadowfile.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/shadowfile.el b/lisp/shadowfile.el index f047223cbae..b3149500ae5 100644 --- a/lisp/shadowfile.el +++ b/lisp/shadowfile.el | |||
| @@ -518,8 +518,9 @@ Pending copies are stored in variable `shadow-files-to-copy', and in | |||
| 518 | `shadow-save-buffers-kill-emacs', so it is not usually necessary to | 518 | `shadow-save-buffers-kill-emacs', so it is not usually necessary to |
| 519 | call it manually." | 519 | call it manually." |
| 520 | (interactive "P") | 520 | (interactive "P") |
| 521 | (if (and (not shadow-files-to-copy) (interactive-p)) | 521 | (if (not shadow-files-to-copy) |
| 522 | (message "No files need to be shadowed.") | 522 | (if (interactive-p) |
| 523 | (message "No files need to be shadowed.")) | ||
| 523 | (save-excursion | 524 | (save-excursion |
| 524 | (map-y-or-n-p (function | 525 | (map-y-or-n-p (function |
| 525 | (lambda (pair) | 526 | (lambda (pair) |