aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-06-14 21:44:34 +0000
committerRichard M. Stallman1993-06-14 21:44:34 +0000
commit4a6e3980e26fda95587bff36c3a0efc0779f0202 (patch)
treea6aa0e89926c2e628eb1efb436bb158872357e37
parent0fc2d0064d82d0d2cab1587a44e9b00e5c934a00 (diff)
downloademacs-4a6e3980e26fda95587bff36c3a0efc0779f0202.tar.gz
emacs-4a6e3980e26fda95587bff36c3a0efc0779f0202.zip
(emerge-make-diff3-list): Pass ancestor second.
(emerge-extract-diffs3): Replace group-1 with group-2. (emerge-handle-local-variables): Pass no arg to hack-local-variables.
-rw-r--r--lisp/emerge.el14
1 files changed, 7 insertions, 7 deletions
diff --git a/lisp/emerge.el b/lisp/emerge.el
index 53749d7c445..d84812a2032 100644
--- a/lisp/emerge.el
+++ b/lisp/emerge.el
@@ -653,8 +653,8 @@ This is *not* a user option, since Emerge uses it for its own processing.")
653 (shell-command 653 (shell-command
654 (format "%s %s %s %s %s" 654 (format "%s %s %s %s %s"
655 emerge-diff3-program emerge-diff-options 655 emerge-diff3-program emerge-diff-options
656 (emerge-protect-metachars file-ancestor)
657 (emerge-protect-metachars file-A) 656 (emerge-protect-metachars file-A)
657 (emerge-protect-metachars file-ancestor)
658 (emerge-protect-metachars file-B)) 658 (emerge-protect-metachars file-B))
659 t)) 659 t))
660 (emerge-prepare-error-list emerge-diff3-ok-lines-regexp) 660 (emerge-prepare-error-list emerge-diff3-ok-lines-regexp)
@@ -671,17 +671,17 @@ This is *not* a user option, since Emerge uses it for its own processing.")
671 (beginning-of-line 2) 671 (beginning-of-line 2)
672 (let ((agreement (buffer-substring (match-beginning 1) (match-end 1)))) 672 (let ((agreement (buffer-substring (match-beginning 1) (match-end 1))))
673 ;; if the A and B files are the same, ignore the difference 673 ;; if the A and B files are the same, ignore the difference
674 (if (not (string-equal agreement "1")) 674 (if (not (string-equal agreement "2"))
675 (setq list 675 (setq list
676 (cons 676 (cons
677 (let (group-2 group-3 pos) 677 (let (group-1 group-3 pos)
678 (setq pos (point)) 678 (setq pos (point))
679 (setq group-2 (emerge-get-diff3-group "2")) 679 (setq group-1 (emerge-get-diff3-group "1"))
680 (goto-char pos) 680 (goto-char pos)
681 (setq group-3 (emerge-get-diff3-group "3")) 681 (setq group-3 (emerge-get-diff3-group "3"))
682 (vector (car group-2) (car (cdr group-2)) 682 (vector (car group-1) (car (cdr group-1))
683 (car group-3) (car (cdr group-3)) 683 (car group-3) (car (cdr group-3))
684 (cond ((string-equal agreement "2") 'prefer-A) 684 (cond ((string-equal agreement "1") 'prefer-A)
685 ((string-equal agreement "3") 'prefer-B) 685 ((string-equal agreement "3") 'prefer-B)
686 (t 'default-A)))) 686 (t 'default-A))))
687 list)))))) 687 list))))))
@@ -1374,7 +1374,7 @@ These characteristics are restored by `emerge-restore-buffer-characteristics'."
1374(defun emerge-handle-local-variables () 1374(defun emerge-handle-local-variables ()
1375 (if emerge-process-local-variables 1375 (if emerge-process-local-variables
1376 (condition-case err 1376 (condition-case err
1377 (hack-local-variables t) 1377 (hack-local-variables)
1378 (error (message "Local-variables error in merge buffer: %s" 1378 (error (message "Local-variables error in merge buffer: %s"
1379 (prin1-to-string err)))))) 1379 (prin1-to-string err))))))
1380 1380