[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ediff-regions-internal can't handle (non-overlapping) regions in t

From: Kevin Rodgers
Subject: Re: ediff-regions-internal can't handle (non-overlapping) regions in the same buffer
Date: Fri, 09 Dec 2005 09:47:40 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

Kevin Rodgers wrote:
I'm working on a way to take advantage of Ediff's fine highlighting
feature within Diff mode buffers.  But calling ediff-regions-internal
programmatically with BUFFER-A the same as BUFFER-B doesn't work,
leaving only the region between BEG-B and END-B highighted.  This is
because ediff-extract-diffs first resets point in both buffers (changing
point in BUFFER-A unintentionally), then builds the diff vector by
moving by lines in each buffer.

The fix is simple, and it allows ediff-regions-internal to work with
non-overlapping regions in the same buffer: Don't set point in each
buffer until necessary:

Sorry, that patch breaks Ediff horribly.  I'll get to work on a proper


reply via email to

[Prev in Thread] Current Thread [Next in Thread]