* bug#8139: 23.2.94; [PATCH] fix broken whitepsace support in diff-mode
@ 2011-02-28 14:22 Leo
2011-03-04 8:00 ` Glenn Morris
0 siblings, 1 reply; 2+ messages in thread
From: Leo @ 2011-02-28 14:22 UTC (permalink / raw)
To: 8139; +Cc: Chong Yidong, Vinicius Jose Latorre
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-04 8:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-28 14:22 bug#8139: 23.2.94; [PATCH] fix broken whitepsace support in diff-mode Leo
2011-03-04 8:00 ` Glenn Morris
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).