|
From: | Dmitry Gutov |
Subject: | bug#21744: 24.5; diff-mode highlight only suitable part |
Date: | Fri, 23 Oct 2015 18:44:14 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:42.0) Gecko/20100101 Thunderbird/42.0 |
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.
[Prev in Thread] | Current Thread | [Next in Thread] |