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:
parent
c0b7b21c12
commit
4f1d7d3173
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user