From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.bugs Subject: bug#8139: 23.2.94; [PATCH] fix broken whitepsace support in diff-mode Date: Mon, 28 Feb 2011 22:22:57 +0800 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1298903825 12421 80.91.229.12 (28 Feb 2011 14:37:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 28 Feb 2011 14:37:05 +0000 (UTC) Cc: Chong Yidong , Vinicius Jose Latorre To: 8139@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 28 15:36:59 2011 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 1Pu4Da-0002pB-1v for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Feb 2011 15:36:58 +0100 Original-Received: from localhost ([127.0.0.1]:53787 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pu4DZ-0007uW-Dx for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Feb 2011 09:36:57 -0500 Original-Received: from [140.186.70.92] (port=49864 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pu4DQ-0007nf-MX for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 09:36:50 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pu4DP-0000Jm-Ee for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 09:36:48 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47762) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pu4DP-0000Ji-A1 for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 09:36:47 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Pu414-0003HO-HC; Mon, 28 Feb 2011 09:24:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Leo Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: viniciusjl@ig.com.br, cyd@stupidchicken.com, bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Feb 2011 14:24:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 8139 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org X-Debbugs-Original-Xcc: Vinicius Jose Latorre , Chong Yidong Original-Received: via spool by submit@debbugs.gnu.org id=B.129890300412556 (code B ref -1); Mon, 28 Feb 2011 14:24:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Feb 2011 14:23:24 +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 1Pu40S-0003GT-E4 for submit@debbugs.gnu.org; Mon, 28 Feb 2011 09:23:24 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Pu40P-0003GF-C1 for submit@debbugs.gnu.org; Mon, 28 Feb 2011 09:23:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pu40J-0005k1-DM for submit@debbugs.gnu.org; Mon, 28 Feb 2011 09:23:16 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:35903) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pu40J-0005jx-At for submit@debbugs.gnu.org; Mon, 28 Feb 2011 09:23:15 -0500 Original-Received: from [140.186.70.92] (port=44286 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pu40I-0003G7-85 for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 09:23:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pu40H-0005jY-49 for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 09:23:14 -0500 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:55081) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pu40G-0005jR-VS for bug-gnu-emacs@gnu.org; Mon, 28 Feb 2011 09:23:13 -0500 Original-Received: by iwl42 with SMTP id 42so4243574iwl.0 for ; Mon, 28 Feb 2011 06:23:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:x-debbugs-cc:date:message-id :mime-version:content-type; bh=8ki2+Md7tm2kEXwBWn3HACK5sQAY+ZAM/CTd/nRvxiU=; b=ejCvNozYS4mKWSTUnDmqDuKUNu5+tZL0MR8trpZJSxPuiL3TjOjD6MgkDQOqihOGhi a723Rh4EB3ZBWoZrc8DRJS9Pzei8F3in3pdVAgJL4maDGuyryLMcACzly0Bje6zhSXx2 L7QYrz3N+btUIbVt/LKW6krIgeVkfynrVJ3Sg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:x-debbugs-cc:date:message-id:mime-version :content-type; b=NMleSkJD8BIkiq5RA6k2pdLO67n06wuelIqnhIplppz8mxIfVqQ32YT29iKeSTgamJ LdzF5cYWl03Nf0fr48eTctGENkk5G8C7yqFj8NjdTiNHaNFzExR5m7bPL13HWHegZE81 GmHwj40oNu5nO8d87yMUzUoEo9Q7C1C/53QGE= Original-Received: by 10.231.12.131 with SMTP id x3mr5518029ibx.76.1298902991977; Mon, 28 Feb 2011 06:23:11 -0800 (PST) Original-Received: from Victoria.local ([120.37.103.176]) by mx.google.com with ESMTPS id 8sm4656152iba.10.2011.02.28.06.23.08 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 28 Feb 2011 06:23:10 -0800 (PST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 28 Feb 2011 09:24:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 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:44439 Archived-At: Turning whitespace-mode on in diff buffers no longer shows trailing white spaces, which is due to change in whitespace-style. >From f67012f57be0ee57281f2553030e04c3c17bc709 Mon Sep 17 00:00:00 2001 Date: Mon, 28 Feb 2011 22:17:51 +0800 Subject: [PATCH] Adapt diff-mode to change in whitespace-style --- lisp/diff-mode.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el index b02c5d91..79a80c81 100644 --- a/lisp/diff-mode.el +++ b/lisp/diff-mode.el @@ -1267,7 +1267,7 @@ (define-derived-mode diff-mode fundamental-mode "Diff" ;; Set up `whitespace-mode' so that turning it on will show trailing ;; whitespace problems on the modified lines of the diff. - (set (make-local-variable 'whitespace-style) '(trailing)) + (set (make-local-variable 'whitespace-style) '(face trailing)) (set (make-local-variable 'whitespace-trailing-regexp) "^[-\+!<>].*?\\([\t ]+\\)$") -- 1.7.4