GNU bug report logs - #8139
23.2.94; [PATCH] fix broken whitepsace support in diff-mode

Previous Next

Package: emacs;

Reported by: Leo <sdl.web <at> gmail.com>

Date: Mon, 28 Feb 2011 14:24:02 UTC

Severity: minor

Tags: patch

Found in version 23.2.94

Fixed in version 24.1

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

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Leo <sdl.web <at> gmail.com>
To: 8139 <at> debbugs.gnu.org
Cc: Vinicius Jose Latorre <viniciusjl <at> ig.com.br>, Chong Yidong <cyd <at> stupidchicken.com>
Subject: bug#8139: 23.2.94; [PATCH] fix broken whitepsace support in diff-mode
Date: Mon, 28 Feb 2011 22:22:57 +0800
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





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

Previous Next


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