Commit 0133dab9 authored by Eli Zaretskii's avatar Eli Zaretskii
Browse files

(basic-save-buffer-2): If backing-up failed, reset buffer-backed-up to nil.

parent 582761a6
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)
......
......@@ -3469,7 +3469,9 @@ Before and after saving the buffer, this function runs
;; 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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment