GNU bug report logs - #21744
24.5; diff-mode highlight only suitable part

Previous Next

Package: emacs;

Reported by: Evgeniy Dushistov <dushistov <at> mail.ru>

Date: Fri, 23 Oct 2015 14:57:01 UTC

Severity: wishlist

Tags: fixed

Merged with 12747, 16798, 18128

Found in versions 23.4, 24.5

Fixed in version 27.1

Done: Noam Postavsky <npostavs <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 21744 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Evgeniy Dushistov <dushistov <at> mail.ru>, 21744 <at> debbugs.gnu.org
Subject: Re: bug#21744: 24.5; diff-mode highlight only suitable part
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.




This bug report was last modified 7 years and 6 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.