diff options
author | Michael Kifer <kifer@cs.stonybrook.edu> | 1996-02-16 06:36:35 +0000 |
---|---|---|
committer | Michael Kifer <kifer@cs.stonybrook.edu> | 1996-02-16 06:36:35 +0000 |
commit | 4ae69eaccfa11c54516ad25942d123e0b320a914 (patch) | |
tree | 9b0e2d0cfb2f0dc16f46b3e08c592e10169bca1a /lisp/ediff-merg.el | |
parent | ae37fce932866163999f037739ad4a51042db059 (diff) | |
download | emacs-4ae69eaccfa11c54516ad25942d123e0b320a914.tar.gz |
*** empty log message ***
Diffstat (limited to 'lisp/ediff-merg.el')
-rw-r--r-- | lisp/ediff-merg.el | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/ediff-merg.el b/lisp/ediff-merg.el index eb203df6307..58f723843bf 100644 --- a/lisp/ediff-merg.el +++ b/lisp/ediff-merg.el @@ -25,12 +25,12 @@ (require 'ediff-init) -(defvar ediff-default-variant 'default-A +(defvar ediff-default-variant 'combined "*The variant to be used as a default for buffer C in merging. Valid values are the symbols `default-A', `default-B', and `combined'.") (defvar ediff-combination-pattern - '("#ifdef NEW /* variant A */" "#else /* variant B */" "#endif /* NEW */") + '("<<<<<<<<<<<<<< variant A" ">>>>>>>>>>>>>> variant B" "======= end of combination") "*Pattern to be used for combining difference regions in buffers A and B. The value is (STRING1 STRING2 STRING3). The combined text will look like this: @@ -213,9 +213,11 @@ Used only for merging jobs." ;; N here is the user's region number. It is 1+ what Ediff uses internally. (defun ediff-combine-diffs (n &optional batch-invocation) "Combine Nth diff regions of buffers A and B and place the combination in C. -Combining is done using the list in variable `ediff-combination-pattern'." +N is a prefix argument. If nil, combine the current difference regions. +Combining is done according to the specifications in variable +`ediff-combination-pattern'." (interactive "P") - (setq n (if n (1- n) ediff-current-difference)) + (setq n (if (numberp n) (1- n) ediff-current-difference)) (let (regA regB reg-combined) (setq regA (ediff-get-region-contents n 'A ediff-control-buffer) @@ -224,7 +226,7 @@ Combining is done using the list in variable `ediff-combination-pattern'." (setq reg-combined (ediff-make-combined-diff regA regB)) (ediff-copy-diff n nil 'C batch-invocation reg-combined)) - (or batch-invocation (ediff-recenter))) + (or batch-invocation (ediff-jump-to-difference (1+ n)))) ;; Checks if the region in buff C looks like a combination of the regions |