aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-08-24 03:09:33 +0000
committerGlenn Morris2007-08-24 03:09:33 +0000
commitdadeaf0502b56335c13720412702333a7cd1113f (patch)
treeaa61d79600222ac732451fafd78739137eb923ca
parentc2357926468a7335f785de9cee3cf1bbb98a1bd8 (diff)
downloademacs-dadeaf0502b56335c13720412702333a7cd1113f.tar.gz
emacs-dadeaf0502b56335c13720412702333a7cd1113f.zip
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.
-rw-r--r--lisp/files.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/files.el b/lisp/files.el
index dab90097119..84aa78b4a52 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -3131,9 +3131,8 @@ BACKUPNAME is the backup file name, which is the old file renamed."
3131 (set-default-file-modes ?\700) 3131 (set-default-file-modes ?\700)
3132 (while (condition-case () 3132 (while (condition-case ()
3133 (progn 3133 (progn
3134 (condition-case nil 3134 (and (file-exists-p to-name)
3135 (delete-file to-name) 3135 (delete-file to-name))
3136 (file-error nil))
3137 (copy-file from-name to-name nil t) 3136 (copy-file from-name to-name nil t)
3138 nil) 3137 nil)
3139 (file-already-exists t)) 3138 (file-already-exists t))