From: Richard M. Stallman Date: Tue, 1 Apr 1997 04:26:33 +0000 (+0000) Subject: (dired-copy-file): Handle file-date-error. X-Git-Tag: emacs-20.1~2673 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4f1d7d31737310082d0e03b0007d0c25db175480;p=emacs.git (dired-copy-file): Handle file-date-error. --- diff --git a/lisp/dired-aux.el b/lisp/dired-aux.el index ebab6fee438..4588c8e8bcf 100644 --- a/lisp/dired-aux.el +++ b/lisp/dired-aux.el @@ -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)