aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/ChangeLog.154
-rw-r--r--lisp/vc/ediff-util.el22
3 files changed, 24 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 97b3a6608ad..61ccbead17d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12012-12-14 Dave Abrahams <dave@boostpro.com>
2
3 * vc/ediff-util.el (ediff-buffer-type): New function.
4 (ediff-clone-buffer-for-current-diff-comparison): Compute the buf-type
5 rather than taking it as as argument.
6 (ediff-inferior-compare-regions): Adjust calls accordingly (bug#11319).
7
12012-12-14 Ryan Crum <ryan.crum@eleostech.com> 82012-12-14 Ryan Crum <ryan.crum@eleostech.com>
2 9
3 * json.el: Add pretty-print option (bug#12634). 10 * json.el: Add pretty-print option (bug#12634).
diff --git a/lisp/ChangeLog.15 b/lisp/ChangeLog.15
index b97cd80cdba..67801bfa20f 100644
--- a/lisp/ChangeLog.15
+++ b/lisp/ChangeLog.15
@@ -324,7 +324,7 @@
324 (ert-run-tests-batch, ert--print-test-for-ewoc): 324 (ert-run-tests-batch, ert--print-test-for-ewoc):
325 Handle `ert-test-quit'. 325 Handle `ert-test-quit'.
326 326
3272011-03-03 David Abrahams <dave@boostpro.com> (tiny change) 3272011-03-03 David Abrahams <dave@boostpro.com>
328 328
329 * vc/ediff-init.el (ediff-use-faces, ediff-highlight-all-diffs): 329 * vc/ediff-init.el (ediff-use-faces, ediff-highlight-all-diffs):
330 Move ediff-defvar-local calls after defcustoms. (Bug#1821) 330 Move ediff-defvar-local calls after defcustoms. (Bug#1821)
@@ -13597,7 +13597,7 @@
13597 * textmodes/artist.el (artist-compute-popup-menu-table): 13597 * textmodes/artist.el (artist-compute-popup-menu-table):
13598 Remove duplicated words in doc-strings. 13598 Remove duplicated words in doc-strings.
13599 13599
136002010-01-15 David Abrahams <dave@boostpro.com> (tiny change) 136002010-01-15 David Abrahams <dave@boostpro.com>
13601 13601
13602 * net/mairix.el (mairix-widget-send-query): Send -1 instead of nil 13602 * net/mairix.el (mairix-widget-send-query): Send -1 instead of nil
13603 to mairix-search to suppress threading (Bug#5342). 13603 to mairix-search to suppress threading (Bug#5342).
diff --git a/lisp/vc/ediff-util.el b/lisp/vc/ediff-util.el
index 86293ade580..75becfdeccb 100644
--- a/lisp/vc/ediff-util.el
+++ b/lisp/vc/ediff-util.el
@@ -3378,10 +3378,18 @@ Without an argument, it saves customized diff argument, if available
3378 (set-window-buffer wind cloned-buff) 3378 (set-window-buffer wind cloned-buff)
3379 cloned-buff)) 3379 cloned-buff))
3380 3380
3381(defun ediff-clone-buffer-for-current-diff-comparison (buff buf-type reg-name) 3381(defun ediff-buffer-type (buffer)
3382 (let ((cloned-buff (ediff-make-cloned-buffer buff reg-name)) 3382 (cond ((eq buffer ediff-buffer-A) 'A)
3383 (reg-start (ediff-get-diff-posn buf-type 'beg)) 3383 ((eq buffer ediff-buffer-B) 'B)
3384 (reg-end (ediff-get-diff-posn buf-type 'end))) 3384 ((eq buffer ediff-buffer-C) 'C)
3385 ((eq buffer ediff-ancestor-buffer) 'Ancestor)
3386 (t nil)))
3387
3388(defun ediff-clone-buffer-for-current-diff-comparison (buff reg-name)
3389 (let* ((cloned-buff (ediff-make-cloned-buffer buff reg-name))
3390 (buf-type (ediff-buffer-type buff))
3391 (reg-start (ediff-get-diff-posn buf-type 'beg))
3392 (reg-end (ediff-get-diff-posn buf-type 'end)))
3385 (ediff-with-current-buffer cloned-buff 3393 (ediff-with-current-buffer cloned-buff
3386 ;; set region to be the current diff region 3394 ;; set region to be the current diff region
3387 (goto-char reg-start) 3395 (goto-char reg-start)
@@ -3466,7 +3474,7 @@ Without an argument, it saves customized diff argument, if available
3466 3474
3467(defun ediff-inferior-compare-regions () 3475(defun ediff-inferior-compare-regions ()
3468 "Compare regions in an active Ediff session. 3476 "Compare regions in an active Ediff session.
3469Like ediff-regions-linewise but is called from under an active Ediff session on 3477Like `ediff-regions-linewise' but is called from under an active Ediff session on
3470the files that belong to that session. 3478the files that belong to that session.
3471 3479
3472After quitting the session invoked via this function, type C-l to the parent 3480After quitting the session invoked via this function, type C-l to the parent
@@ -3555,7 +3563,7 @@ Ediff Control Panel to restore highlighting."
3555 3563
3556 (setq bufA (if use-current-diff-p 3564 (setq bufA (if use-current-diff-p
3557 (ediff-clone-buffer-for-current-diff-comparison 3565 (ediff-clone-buffer-for-current-diff-comparison
3558 bufA 'A "-Region.A-") 3566 bufA "-Region.A-")
3559 (ediff-clone-buffer-for-region-comparison bufA "-Region.A-"))) 3567 (ediff-clone-buffer-for-region-comparison bufA "-Region.A-")))
3560 (ediff-with-current-buffer bufA 3568 (ediff-with-current-buffer bufA
3561 (setq begA (region-beginning) 3569 (setq begA (region-beginning)
@@ -3570,7 +3578,7 @@ Ediff Control Panel to restore highlighting."
3570 3578
3571 (setq bufB (if use-current-diff-p 3579 (setq bufB (if use-current-diff-p
3572 (ediff-clone-buffer-for-current-diff-comparison 3580 (ediff-clone-buffer-for-current-diff-comparison
3573 bufB 'B "-Region.B-") 3581 bufB "-Region.B-")
3574 (ediff-clone-buffer-for-region-comparison bufB "-Region.B-"))) 3582 (ediff-clone-buffer-for-region-comparison bufB "-Region.B-")))
3575 (ediff-with-current-buffer bufB 3583 (ediff-with-current-buffer bufB
3576 (setq begB (region-beginning) 3584 (setq begB (region-beginning)