From: Richard M. Stallman Date: Thu, 24 Jan 2002 18:55:53 +0000 (+0000) Subject: (basic-save-buffer-2): Ignore file-error in delete-file. X-Git-Tag: ttn-vms-21-2-B4~16999 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c9783dfe4fda587b0c43a1a8f1383e88006681c1;p=emacs.git (basic-save-buffer-2): Ignore file-error in delete-file. --- diff --git a/lisp/files.el b/lisp/files.el index 8042707e137..e22443b19a1 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2745,7 +2745,9 @@ After saving the buffer, this function runs `after-save-hook'." ;; delete the temp file. (or succeed (progn - (delete-file tempname) + (condition-case nil + (delete-file tempname) + (file-error nil)) (set-visited-file-modtime old-modtime)))) ;; Since we have created an entirely new file ;; and renamed it, make sure it gets the