]> git.eshelyaron.com Git - emacs.git/commitdiff
(dired-copy-file): Handle file-date-error.
authorRichard M. Stallman <rms@gnu.org>
Tue, 1 Apr 1997 04:26:33 +0000 (04:26 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 1 Apr 1997 04:26:33 +0000 (04:26 +0000)
lisp/dired-aux.el

index ebab6fee43882def7e823b82969c77e3b978051a..4588c8e8bcf0315c216d8e088582986165a08bde 100644 (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)