mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-12-23 10:34:07 +00:00
(shadow-copy-files): Use interactive-p
only to control whether to print a message.
This commit is contained in:
parent
bea824fdf3
commit
4f8e58ec5f
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user