Mercurial > emacs
changeset 78648:919ee0e1f2e3
Ulrich Mueller <ulm at gentoo.org> (tiny change)
(backup-buffer-copy): Don't wrap delete in condition-case, only try to
delete if file exists.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Fri, 24 Aug 2007 03:09:33 +0000 |
parents | fd75232a4a2c |
children | 73d0aca5f90c |
files | lisp/files.el |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/files.el Fri Aug 24 03:07:35 2007 +0000 +++ b/lisp/files.el Fri Aug 24 03:09:33 2007 +0000 @@ -3131,9 +3131,8 @@ (set-default-file-modes ?\700) (while (condition-case () (progn - (condition-case nil - (delete-file to-name) - (file-error nil)) + (and (file-exists-p to-name) + (delete-file to-name)) (copy-file from-name to-name nil t) nil) (file-already-exists t))