From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#7033: 23.2; M-n in diff mode causes unwanted face changes Date: Tue, 14 Sep 2010 23:15:30 +0200 Message-ID: References: <20100914164240.GA3425@alvy.suse.cz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1284538247 14231 80.91.229.12 (15 Sep 2010 08:10:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Sep 2010 08:10:47 +0000 (UTC) Cc: 7033@debbugs.gnu.org To: Martin Jambor Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 15 10:10:46 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovn4m-0004Hk-NS for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Sep 2010 10:10:45 +0200 Original-Received: from localhost ([127.0.0.1]:39212 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ovn4l-0005wI-HW for geb-bug-gnu-emacs@m.gmane.org; Wed, 15 Sep 2010 04:10:43 -0400 Original-Received: from [140.186.70.92] (port=50834 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ovn4c-0005uA-TC for bug-gnu-emacs@gnu.org; Wed, 15 Sep 2010 04:10:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ovn4b-00048a-O0 for bug-gnu-emacs@gnu.org; Wed, 15 Sep 2010 04:10:34 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46629) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovn4b-00048W-LN for bug-gnu-emacs@gnu.org; Wed, 15 Sep 2010 04:10:33 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OvmwM-000850-Bq; Wed, 15 Sep 2010 04:02:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 15 Sep 2010 08:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 7033 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 7033-submit@debbugs.gnu.org id=B7033.128453771031052 (code B ref 7033); Wed, 15 Sep 2010 08:02:02 +0000 Original-Received: (at 7033) by debbugs.gnu.org; 15 Sep 2010 08:01:50 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovmw9-00084n-Uy for submit@debbugs.gnu.org; Wed, 15 Sep 2010 04:01:50 -0400 Original-Received: from pruche.dit.umontreal.ca ([132.204.246.22]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ovmw7-00084g-I9 for 7033@debbugs.gnu.org; Wed, 15 Sep 2010 04:01:48 -0400 Original-Received: from ceviche.home (vpn-132-204-232-22.acd.umontreal.ca [132.204.232.22]) by pruche.dit.umontreal.ca (8.14.1/8.14.1) with ESMTP id o8F840dQ031399; Wed, 15 Sep 2010 04:04:01 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 4566D66303; Tue, 14 Sep 2010 23:15:30 +0200 (CEST) In-Reply-To: <20100914164240.GA3425@alvy.suse.cz> (Martin Jambor's message of "Tue, 14 Sep 2010 18:42:40 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 1 Rules triggered RV3622=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 15 Sep 2010 04:02:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:40176 Archived-At: > 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