summaryrefslogtreecommitdiff
path: root/lisp/shadowfile.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/shadowfile.el')
-rw-r--r--lisp/shadowfile.el8
1 files changed, 1 insertions, 7 deletions
diff --git a/lisp/shadowfile.el b/lisp/shadowfile.el
index ece12c367e1..04da2c5eb3e 100644
--- a/lisp/shadowfile.el
+++ b/lisp/shadowfile.el
@@ -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)))))))