# HG changeset patch # User Thien-Thi Nguyen # Date 1192731885 0 # Node ID c401c87aabbf9244944d7426a32220843096edfe # Parent 065fa2d96c5ad630718bd389ff05a8e4c9479b0a (emerge-setup): Use insert-buffer-substring. (emerge-prepare-error-list, emerge-setup-with-ancestor): Likewise. diff -r 065fa2d96c5a -r c401c87aabbf lisp/emerge.el --- a/lisp/emerge.el Thu Oct 18 16:07:35 2007 +0000 +++ b/lisp/emerge.el Thu Oct 18 18:24:45 2007 +0000 @@ -633,7 +633,7 @@ (if output-file (concat "Output to file: " output-file) (concat "Output to buffer: " (buffer-name merge-buffer)))) - (insert-buffer emerge-A-buffer) + (save-excursion (insert-buffer-substring emerge-A-buffer)) (emerge-set-keys) (setq emerge-difference-list (emerge-make-diff-list file-A file-B)) (setq emerge-number-of-differences (length emerge-difference-list)) @@ -712,7 +712,7 @@ (emerge-eval-in-buffer emerge-diff-error-buffer (erase-buffer) - (insert-buffer emerge-diff-buffer) + (save-excursion (insert-buffer-substring emerge-diff-buffer)) (delete-matching-lines ok-regexp))) ;;; Top-level and setup functions for three-file mode. @@ -802,7 +802,7 @@ (if output-file (concat "Output to file: " output-file) (concat "Output to buffer: " (buffer-name merge-buffer)))) - (insert-buffer emerge-A-buffer) + (save-excursion (insert-buffer-substring emerge-A-buffer)) (emerge-set-keys) (setq emerge-difference-list (emerge-make-diff3-list file-A file-B file-ancestor))