summaryrefslogtreecommitdiff
path: root/lisp/ediff-util.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/ediff-util.el')
-rw-r--r--lisp/ediff-util.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/ediff-util.el b/lisp/ediff-util.el
index d0be103b8a..a6247395ef 100644
--- a/lisp/ediff-util.el
+++ b/lisp/ediff-util.el
@@ -343,8 +343,7 @@ to invocation.")
(setq buffer-C
(get-buffer-create
(ediff-unique-buffer-name "*ediff-merge" "*")))
- (save-excursion
- (set-buffer buffer-C)
+ (with-current-buffer buffer-C
(insert-buffer-substring buf)
(goto-char (point-min))
(funcall (ediff-with-current-buffer buf major-mode))