1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-22 07:09:54 +00:00

(dired-copy-file): Handle file-date-error.

This commit is contained in:
Richard M. Stallman 1997-04-01 04:26:33 +00:00
parent c0b7b21c12
commit 4f1d7d3173

View File

@ -949,7 +949,10 @@ Special value `always' suppresses confirmation.")
;;;###autoload
(defun dired-copy-file (from to ok-flag)
(dired-handle-overwrite to)
(copy-file from to ok-flag dired-copy-preserve-time))
(condition-case ()
(copy-file from to ok-flag dired-copy-preserve-time)
(file-date-error (message "Can't set date")
(sit-for 1))))
;;;###autoload
(defun dired-rename-file (from to ok-flag)