GNU bug report logs - #7033
23.2; M-n in diff mode causes unwanted face changes

Previous Next

Package: emacs;

Reported by: Martin Jambor <mjambor <at> suse.cz>

Date: Tue, 14 Sep 2010 16:39:02 UTC

Severity: normal

Found in version 23.2

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


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

From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: Martin Jambor <mjambor <at> suse.cz>
Cc: 7033 <at> debbugs.gnu.org
Subject: Re: bug#7033: 23.2; M-n in diff mode causes unwanted face changes
Date: Tue, 14 Sep 2010 23:15:30 +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




This bug report was last modified 14 years and 250 days ago.

Previous Next


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