unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: npostavs@users.sourceforge.net
To: Tino Calancha <tino.calancha@gmail.com>
Cc: Philipp Stephani <p.stephani2@gmail.com>, 25493@debbugs.gnu.org
Subject: bug#25493: 26.0.50; ediff merge should (optionally) show ancestor in fourth window
Date: Sat, 11 Mar 2017 08:45:40 -0500	[thread overview]
Message-ID: <87efy47wqj.fsf@users.sourceforge.net> (raw)
In-Reply-To: <87innmh53f.fsf@calancha-pc> (Tino Calancha's message of "Mon, 06 Mar 2017 23:06:44 +0900")

Tino Calancha <tino.calancha@gmail.com> writes:

> OK.  I have simplified the patch a lot.  I have restricted to the problem
> in hands: to show the buffer ancestor in 3way merges.  The refinement of
> this buffer must keep in the TODO list (see below).

Thanks, it's a lot more comprehensible now.

> Subject: [PATCH 2/2] Show ancestor buffer in 3way merges
>
> Add an option ediff-show-ancestor', to control if the ancestor buffer
> must be shown in 3way merges (Bug#25493);  set it non-nil by default.
                                           ^^
Extra space there.

> -
> -    ;; In case of merge job, fool it into thinking that it is just doing
> -    ;; comparison
> -    (let ((ediff-setup-diff-regions-function ediff-setup-diff-regions-function)
> -	  (ediff-3way-comparison-job ediff-3way-comparison-job)
> -	  (ediff-merge-job ediff-merge-job)
> -	  (ediff-merge-with-ancestor-job ediff-merge-with-ancestor-job)
> -	  (ediff-job-name ediff-job-name))
> -      (if ediff-merge-job
> -	  (setq ediff-setup-diff-regions-function 'ediff-setup-diff-regions3
> -		ediff-3way-comparison-job t
> -		ediff-merge-job nil
> -		ediff-merge-with-ancestor-job nil
> -		ediff-job-name 'ediff-files3))
> -      (funcall ediff-setup-diff-regions-function file-A file-B file-C))
> -
> +    (funcall ediff-setup-diff-regions-function file-A file-B
> +             (if ediff-merge-with-ancestor-job file-Ancestor file-C))

It works when I tested it, so I guess this is correct, but it's not
really obvious to me why (i.e., why we no longer need to "fool it").
Could you add an explanation to the commit message?

Otherwise looks good to me.





  reply	other threads:[~2017-03-11 13:45 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-20 11:17 bug#25493: 26.0.50; ediff merge should (optionally) show ancestor in fourth window Philipp Stephani
2017-02-19 10:47 ` Tino Calancha
2017-02-26 11:35   ` Charles A. Roelli
2017-02-28  3:55     ` Tino Calancha
2017-02-28  4:42       ` npostavs
2017-02-28  6:39         ` Tino Calancha
2017-03-04 23:06   ` npostavs
2017-03-06 14:06     ` Tino Calancha
2017-03-11 13:45       ` npostavs [this message]
2017-03-14  7:43         ` Tino Calancha

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87efy47wqj.fsf@users.sourceforge.net \
    --to=npostavs@users.sourceforge.net \
    --cc=25493@debbugs.gnu.org \
    --cc=p.stephani2@gmail.com \
    --cc=tino.calancha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).