# HG changeset patch # User Glenn Morris # Date 1187924973 0 # Node ID 919ee0e1f2e331b696288f510d0d9a996ddd33c6 # Parent fd75232a4a2cc554e54036b4a83d6fe5af993be6 Ulrich Mueller (tiny change) (backup-buffer-copy): Don't wrap delete in condition-case, only try to delete if file exists. diff -r fd75232a4a2c -r 919ee0e1f2e3 lisp/files.el --- 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))