;;; shadowfile.el --- automatic file copying
;; Copyright (C) 1993, 1994, 2001, 2002, 2003, 2004,
-;; 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+;; 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
;; Author: Boris Goldowsky <boris@gnu.org>
;; Keywords: comm files
(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)))))))