]> git.eshelyaron.com Git - emacs.git/commitdiff
(shadow-copy-file): Revert previous change.
authorRichard M. Stallman <rms@gnu.org>
Thu, 25 Dec 2008 08:08:46 +0000 (08:08 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 25 Dec 2008 08:08:46 +0000 (08:08 +0000)
This code as it was should work properly with buffer-swapped-with.

lisp/ChangeLog
lisp/shadowfile.el

index 13e3bdb0248761e43c870f649979fa64e9e794ad..c28cc37e29eb42e3eaac6fb0999cca29a689e306 100644 (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.
index ece12c367e12c5265742e7f426da8db801c72d39..04da2c5eb3ef43972779a7bdbec333b5b6b11697 100644 (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)))))))