This code as it was should work properly with buffer-swapped-with.
+2008-12-25 Richard M Stallman <rms@gnu.org>
+
+ * shadowfile.el (shadow-copy-file): Revert previous change.
+ This code as it was should work properly with buffer-swapped-with.
+
2008-12-24 Francois Fleuret <francois.fleuret@idiap.ch> (tiny change)
* textmodes/tex-mode.el (tex-bibtex-file): Use tex-main-file.
(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)))))))