From: Dmitry Gutov <dgutov@yandex.ru>
To: Evgeniy Dushistov <dushistov@mail.ru>, 21744@debbugs.gnu.org
Subject: bug#21744: 24.5; diff-mode highlight only suitable part
Date: Fri, 23 Oct 2015 18:44:14 +0300 [thread overview]
Message-ID: <562A55CE.80201@yandex.ru> (raw)
In-Reply-To: <20151023145547.GA4307@whiterain>
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 parent reply other threads:[~2015-10-23 15:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-23 14:55 bug#21744: 24.5; diff-mode highlight only suitable part Evgeniy Dushistov
2015-10-23 15:44 ` Dmitry Gutov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=562A55CE.80201@yandex.ru \
--to=dgutov@yandex.ru \
--cc=21744@debbugs.gnu.org \
--cc=dushistov@mail.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.