aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/vc/ediff-util.el30
1 files changed, 12 insertions, 18 deletions
diff --git a/lisp/vc/ediff-util.el b/lisp/vc/ediff-util.el
index 104a5782682..b1652e7efd4 100644
--- a/lisp/vc/ediff-util.el
+++ b/lisp/vc/ediff-util.el
@@ -3546,25 +3546,19 @@ Ediff Control Panel to restore highlighting."
3546 (ediff-paint-background-regions 'unhighlight) 3546 (ediff-paint-background-regions 'unhighlight)
3547 3547
3548 (cond ((ediff-merge-job) 3548 (cond ((ediff-merge-job)
3549 (setq bufB ediff-buffer-C)
3550 ;; ask which buffer to compare to the merge buffer 3549 ;; ask which buffer to compare to the merge buffer
3551 (while (cond ((eq answer ?A) 3550 (setq answer (read-multiple-choice
3552 (setq bufA ediff-buffer-A 3551 "Which buffer to compare?"
3553 possibilities '(?B)) 3552 '((?a "A")
3554 nil) 3553 (?b "B"))))
3555 ((eq answer ?B) 3554 (if (eq (car answer) ?a)
3556 (setq bufA ediff-buffer-B 3555 (setq bufA ediff-buffer-A)
3557 possibilities '(?A)) 3556 (setq bufA ediff-buffer-B))
3558 nil) 3557 (setq bufB (if (and ediff-ancestor-buffer
3559 ((equal answer "")) 3558 (y-or-n-p (format "Compare %s against ancestor buffer?"
3560 (t (beep 1) 3559 (cadr answer))))
3561 (message "Valid values are A or B") 3560 ediff-ancestor-buffer
3562 (sit-for 2) 3561 ediff-buffer-C)))
3563 t))
3564 (let ((cursor-in-echo-area t))
3565 (message
3566 "Which buffer to compare to the merge buffer (A or B)? ")
3567 (setq answer (capitalize (read-char-exclusive))))))
3568 3562
3569 ((ediff-3way-comparison-job) 3563 ((ediff-3way-comparison-job)
3570 ;; ask which two buffers to compare 3564 ;; ask which two buffers to compare