From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: Martin Jambor <mjambor@suse.cz>
Cc: 7033@debbugs.gnu.org
Subject: bug#7033: 23.2; M-n in diff mode causes unwanted face changes
Date: Tue, 14 Sep 2010 23:15:30 +0200 [thread overview]
Message-ID: <jwvk4moqbcz.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20100914164240.GA3425@alvy.suse.cz> (Martin Jambor's message of "Tue, 14 Sep 2010 18:42:40 +0200")
> When I open almost any patch in the diff mode and press M-n to get to
> the next hunk, random portions of the text (just parts of a line) change
> their face from diff-added or diff-removed to diff-refine change. This
> causes the text to be displayed in a wrong background, causing it to be
> rather difficult to read (and is always unpleasant). I have not
> observed any pattern as to what text is changed but it is always exactly
> the same text in the given file.
> This does not happen with emacs 22, only with 23, I have observeed it on
> Suse and Debian linux distributions. I can reproduce the bug when I run
> emacs with the -Q switch like e.g.
It's not a bug, it's a feature (the diff-refine face is used to
highlight the parts of a hunk that are changed, at a finer granularity
than just lines). So when the hunk looks like:
-foo bar baz
+foo toto bar baz
the "toto" word will be highlighted. When diffing refilled LaTeX
paragraphs where a few words were added/removed, I find it to be invaluable.
C-h f diff-auto-refine-mode RET
C-h f diff-refine-hunk RET
Stefan
prev parent reply other threads:[~2010-09-14 21:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-14 16:42 bug#7033: 23.2; M-n in diff mode causes unwanted face changes Martin Jambor
2010-09-14 21:15 ` Stefan Monnier [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=jwvk4moqbcz.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=7033@debbugs.gnu.org \
--cc=mjambor@suse.cz \
/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.