Subject: 23.2.94; [PATCH] fix broken whitepsace support in diff-mode

From: Leo <[email-masked]>
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