mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-27 07:37:33 +00:00
(basic-save-buffer-2): Ignore file-error in delete-file.
This commit is contained in:
parent
a978004d1f
commit
c9783dfe4f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user