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.
This commit is contained in:
Glenn Morris
2007-08-24 03:08:13 +00:00
parent 46b0d02912
commit bb1f0d92c2

View File

@@ -3183,9 +3183,8 @@ BACKUPNAME is the backup file name, which is the old file renamed."
(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))