diff options
| author | Glenn Morris | 2007-08-24 03:08:13 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-08-24 03:08:13 +0000 |
| commit | bb1f0d92c29e2465d1d18eaf3a7bbfcf8a8f0d6b (patch) | |
| tree | 0f6d23579cd57f28dacf1f933ba48e887fe3a34a | |
| parent | 46b0d02912eaa28fa244a17abbed2d6ee2d8ce33 (diff) | |
| download | emacs-bb1f0d92c29e2465d1d18eaf3a7bbfcf8a8f0d6b.tar.gz emacs-bb1f0d92c29e2465d1d18eaf3a7bbfcf8a8f0d6b.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.el | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/files.el b/lisp/files.el index 614cad467ef..be3c53951c4 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -3183,9 +3183,8 @@ BACKUPNAME is the backup file name, which is the old file renamed." | |||
| 3183 | (set-default-file-modes ?\700) | 3183 | (set-default-file-modes ?\700) |
| 3184 | (while (condition-case () | 3184 | (while (condition-case () |
| 3185 | (progn | 3185 | (progn |
| 3186 | (condition-case nil | 3186 | (and (file-exists-p to-name) |
| 3187 | (delete-file to-name) | 3187 | (delete-file to-name)) |
| 3188 | (file-error nil)) | ||
| 3189 | (copy-file from-name to-name nil t) | 3188 | (copy-file from-name to-name nil t) |
| 3190 | nil) | 3189 | nil) |
| 3191 | (file-already-exists t)) | 3190 | (file-already-exists t)) |