diff options
author | Richard M. Stallman <rms@gnu.org> | 2008-12-25 08:08:46 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 2008-12-25 08:08:46 +0000 |
commit | 737ef6823b9745017310d25f2afe89d04f732224 (patch) | |
tree | 9d7ea5459f7c21dc26e6579bf580dd6348dce7ad /lisp/shadowfile.el | |
parent | 85f967f90d5f2c2a441fd58d99531df263ae2b60 (diff) | |
download | emacs-737ef6823b9745017310d25f2afe89d04f732224.tar.gz |
(shadow-copy-file): Revert previous change.
This code as it was should work properly with buffer-swapped-with.
Diffstat (limited to 'lisp/shadowfile.el')
-rw-r--r-- | lisp/shadowfile.el | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lisp/shadowfile.el b/lisp/shadowfile.el index ece12c367e1..04da2c5eb3e 100644 --- a/lisp/shadowfile.el +++ b/lisp/shadowfile.el @@ -575,13 +575,7 @@ site." (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))))))) |