1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-30 08:09:04 +00:00

(basic-save-buffer-2): Ignore file-error in delete-file.

This commit is contained in:
Richard M. Stallman 2002-01-24 18:55:53 +00:00
parent a978004d1f
commit c9783dfe4f

View File

@ -2745,7 +2745,9 @@ After saving the buffer, this function runs `after-save-hook'."
;; delete the temp file.
(or succeed
(progn
(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