Subject: bug#21744: 24.5; diff-mode highlight only suitable part

From: Dmitry Gutov <[email-masked]>
Date: Fri, 23 Oct 2015 18:44:14 +0300

Hi Evgeniy,

On 10/23/2015 05:55 PM, Evgeniy Dushistov wrote:
> the diff-mode highlight string with starting "-" with red, and starting "+" with green,
> it would be great if it  highlight also difference between strings.
> There is only "=" symbol difference between two lines above, so it would be great
> if emacs highlight also "=" in the second string.

We currently have this feature in the shape of diff-auto-refine-mode. 
Try pressing `n' or `p': the navigation commands also refine the hunks 
to show the differences.

There has been some talk of doing that automatically (using font-lock), 
but the refining algorithm is rather slow on large hunks.

I'd also recommend installing diff-hl (available in ELPA): it remaps the 
vc-diff command to its own wrapper that also scrolls to the hunk 
corresponding to the current line, and refines it.