(shadow-copy-file): Revert previous change.

This code as it was should work properly with buffer-swapped-with.
This commit is contained in:
Richard M. Stallman 2008-12-25 08:08:46 +00:00
parent 85f967f90d
commit 737ef6823b
2 changed files with 6 additions and 7 deletions

View file

@ -1,3 +1,8 @@
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.

View file

@ -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)))))))