# HG changeset patch # User Richard M. Stallman # Date 859868793 0 # Node ID 5dd977f516528562fe2c9a3225322bc481001072 # Parent e34a30952e1491942d235f56053e5f786f5b6858 (dired-copy-file): Handle file-date-error. diff -r e34a30952e14 -r 5dd977f51652 lisp/dired-aux.el --- a/lisp/dired-aux.el Tue Apr 01 04:25:04 1997 +0000 +++ b/lisp/dired-aux.el Tue Apr 01 04:26:33 1997 +0000 @@ -949,7 +949,10 @@ ;;;###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)