From 4f1d7d31737310082d0e03b0007d0c25db175480 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 1 Apr 1997 04:26:33 +0000 Subject: [PATCH] (dired-copy-file): Handle file-date-error. --- lisp/dired-aux.el | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.39.2