From c9783dfe4fda587b0c43a1a8f1383e88006681c1 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Thu, 24 Jan 2002 18:55:53 +0000 Subject: [PATCH] (basic-save-buffer-2): Ignore file-error in delete-file. --- lisp/files.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.39.5