Mercurial > emacs
changeset 42929:193c9307d562
(basic-save-buffer-2): Ignore file-error in delete-file.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 24 Jan 2002 18:55:53 +0000 |
parents | f03a11bcb718 |
children | 09e1ef4107e7 |
files | lisp/files.el |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/files.el Thu Jan 24 17:18:35 2002 +0000 +++ b/lisp/files.el Thu Jan 24 18:55:53 2002 +0000 @@ -2745,7 +2745,9 @@ ;; 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