unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Refining ediff's idea of a difference?
@ 2015-01-30 23:11 Doug Lewan
  2015-01-31  7:17 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Doug Lewan @ 2015-01-30 23:11 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

Using ediff I find that very often one difference one difference seems inappropriately large and might obscure a small difference.

In the example at hand I have the two following diffs:

    <<<< A
     -clrobj server_info_blk -fid server_info_begin_time  -val 2015-01-29 15:28:47
    >>>> B
     -clrobj server_info_blk -fid server_info_begin_time  -val 2015-01-29 15:27:28
    -fid server_info_reply_que  -val 
    -fid server_info_tran_msg_type  -val 
    -fid server_info_tran_id  -val 
    -fid server_info_seq_msg_type  -val 
    -fid server_info_seq_id  -val 
    ...

The lines following diff A are these
    <<<< A
    -fid server_info_reply_que  -val 
    -fid server_info_tran_msg_type  -val 
    -fid server_info_tran_id  -val 
    -fid server_info_seq_msg_type  -val 
    -fid server_info_seq_id  -val 
which look, to my eye, identical to those flagged as different in diff B.

I'd rather those lines are recognized as identical, so the diff is minimal. Is there a conventional way to do that?

I haven't found anything obvious in ediff customization. Browsing the code didn't reveal much more than the fact that ediff seems to use diff with no options. It clearly does more with that information.

Thanks in advance.

-- 
,Doug
Douglas Lewan
Shubert Ticketing
(201) 489-8600 ext 224 or ext 4335

The human brain is the most complex thing known to man, according to the human brain.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Refining ediff's idea of a difference?
  2015-01-30 23:11 Refining ediff's idea of a difference? Doug Lewan
@ 2015-01-31  7:17 ` Eli Zaretskii
  2015-02-03 15:49   ` Doug Lewan
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2015-01-31  7:17 UTC (permalink / raw)
  To: help-gnu-emacs

> From: Doug Lewan <dougl@shubertticketing.com>
> Date: Fri, 30 Jan 2015 23:11:41 +0000
> 
> Using ediff I find that very often one difference one difference seems inappropriately large and might obscure a small difference.
> 
> In the example at hand I have the two following diffs:
> 
>     <<<< A
>      -clrobj server_info_blk -fid server_info_begin_time  -val 2015-01-29 15:28:47
>     >>>> B
>      -clrobj server_info_blk -fid server_info_begin_time  -val 2015-01-29 15:27:28
>     -fid server_info_reply_que  -val 
>     -fid server_info_tran_msg_type  -val 
>     -fid server_info_tran_id  -val 
>     -fid server_info_seq_msg_type  -val 
>     -fid server_info_seq_id  -val 
>     ...
> 
> The lines following diff A are these
>     <<<< A
>     -fid server_info_reply_que  -val 
>     -fid server_info_tran_msg_type  -val 
>     -fid server_info_tran_id  -val 
>     -fid server_info_seq_msg_type  -val 
>     -fid server_info_seq_id  -val 
> which look, to my eye, identical to those flagged as different in diff B.
> 
> I'd rather those lines are recognized as identical, so the diff is minimal. Is there a conventional way to do that?

Ediff just obeys here what the Diff utility outputs.  So try playing
with Diff switches, like -d, -b, -B, -w, --horizon-lines.

> I haven't found anything obvious in ediff customization. Browsing the code didn't reveal much more than the fact that ediff seems to use diff with no options. It clearly does more with that information.

The relevant defcustom is ediff-diff-options.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* RE: Refining ediff's idea of a difference?
  2015-01-31  7:17 ` Eli Zaretskii
@ 2015-02-03 15:49   ` Doug Lewan
  0 siblings, 0 replies; 3+ messages in thread
From: Doug Lewan @ 2015-02-03 15:49 UTC (permalink / raw)
  To: Eli Zaretskii, help-gnu-emacs@gnu.org

ELi,

You wrote:
> The relevant defcustom is ediff-diff-options.

I'll play with different values and see what happens.

Thanks.
-- 
,Doug
Douglas Lewan
Shubert Ticketing
(201) 489-8600 ext 224 or ext 4335

The human brain is the most complex thing known to man, according to the human brain.


> -----Original Message-----
> From: dougl=shubertticketing.com
> On Behalf Of Eli Zaretskii
> Subject: Re: Refining ediff's idea of a difference?
> 
> > From: Doug Lewan
> > Date: Fri, 30 Jan 2015 23:11:41 +0000
> >
> > Using ediff I find that very often one difference one difference
> seems inappropriately large and might obscure a small difference.
> >
> > In the example at hand I have the two following diffs:
> >
> >     <<<< A
> >      -clrobj server_info_blk -fid server_info_begin_time  -val 2015-
> 01-29 15:28:47
> >     >>>> B
> >      -clrobj server_info_blk -fid server_info_begin_time  -val 2015-
> 01-29 15:27:28
> >     -fid server_info_reply_que  -val
> >     -fid server_info_tran_msg_type  -val
> >     -fid server_info_tran_id  -val
> >     -fid server_info_seq_msg_type  -val
> >     -fid server_info_seq_id  -val
> >     ...
> >
> > The lines following diff A are these
> >     <<<< A
> >     -fid server_info_reply_que  -val
> >     -fid server_info_tran_msg_type  -val
> >     -fid server_info_tran_id  -val
> >     -fid server_info_seq_msg_type  -val
> >     -fid server_info_seq_id  -val
> > which look, to my eye, identical to those flagged as different in
> diff B.
> >
> > I'd rather those lines are recognized as identical, so the diff is
> minimal. Is there a conventional way to do that?
> 
> Ediff just obeys here what the Diff utility outputs.  So try playing
> with Diff switches, like -d, -b, -B, -w, --horizon-lines.
> 
> > I haven't found anything obvious in ediff customization. Browsing the
> code didn't reveal much more than the fact that ediff seems to use diff
> with no options. It clearly does more with that information.
> 
> The relevant defcustom is ediff-diff-options.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-02-03 15:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-30 23:11 Refining ediff's idea of a difference? Doug Lewan
2015-01-31  7:17 ` Eli Zaretskii
2015-02-03 15:49   ` Doug Lewan

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).