# HG changeset patch # User Richard M. Stallman # Date 1230192493 0 # Node ID 10bc85aa8a955d2191ebfb402980a79ea9b5ad00 # Parent 22cd960b6c0e6771f6a1212e8aa52e686c779afb (shadow-copy-file): Revert previous change. This code as it was should work properly with buffer-swapped-with. diff -r 22cd960b6c0e -r 10bc85aa8a95 lisp/shadowfile.el --- 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)))))))