+2006-01-06 Sven Joachim <svenjoac@gmx.de> (tiny change)
+
+ * files.el (basic-save-buffer-2): If backing-up failed, reset
+ buffer-backed-up to nil.
+
2006-01-06 Nick Roberts <nickrob@snap.net.nz>
* progmodes/gud.el (gdb-script-skip-to-head)
;; If we get an error writing the new file, and we made
;; the backup by renaming, undo the backing-up.
(and setmodes (not success)
- (rename-file (cdr setmodes) buffer-file-name))))))
+ (progn
+ (rename-file (cdr setmodes) buffer-file-name t)
+ (setq buffer-backed-up nil)))))))
setmodes))
(defun diff-buffer-with-file (&optional buffer)