Mercurial > emacs
changeset 100680:10bc85aa8a95
(shadow-copy-file): Revert previous change.
This code as it was should work properly with buffer-swapped-with.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Thu, 25 Dec 2008 08:08:13 +0000 |
parents | 22cd960b6c0e |
children | 0692e41e4739 |
files | lisp/shadowfile.el |
diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/shadowfile.el Thu Dec 25 01:15:03 2008 +0000 +++ b/lisp/shadowfile.el Thu Dec 25 08:08:13 2008 +0000 @@ -575,13 +575,7 @@ (set-buffer buffer) (condition-case i (progn - (if buffer-swapped-with - (progn - (buffer-swap-text buffer-swapped-with) - (unwind-protect - (write-region nil nil to) - (buffer-swap-text buffer-swapped-with))) - (write-region nil nil to)) + (write-region nil nil to) (shadow-remove-from-todo s)) (error (message "Shadow %s not updated!" (cdr s)))))))