Mercurial > emacs
diff lisp/shadowfile.el @ 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 | 4caea5d62b15 |
| children | a9dc0e7c3f2b |
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)))))))
