From 29ed2f308ce5cd3d445113a4696487c00624bc1d Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 7 Jan 2011 12:57:34 +0000 Subject: [PATCH] * misc/ruby-mode.el (ruby-mode-variables), misc/ruby-style.el: show trailing whitespace. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 ++++- misc/ruby-mode.el | 1 + misc/ruby-style.el | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d1409d1ce1..ad050137c3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,7 @@ -Fri Jan 7 21:54:04 2011 Nobuyoshi Nakada +Fri Jan 7 21:57:22 2011 Nobuyoshi Nakada + + * misc/ruby-mode.el (ruby-mode-variables), misc/ruby-style.el: + show trailing whitespace. * misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): highlight regexp after open bracket. [ruby-core:34183] diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 0fec8e9cec..aaea3a0d0e 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -297,6 +297,7 @@ Also ignores spaces after parenthesis when 'space." (defun ruby-mode-variables () (set-syntax-table ruby-mode-syntax-table) + (setq show-trailing-whitespace t) (setq local-abbrev-table ruby-mode-abbrev-table) (make-local-variable 'indent-line-function) (setq indent-line-function 'ruby-indent-line) diff --git a/misc/ruby-style.el b/misc/ruby-style.el index c433025dbc..3ce55cd1ab 100644 --- a/misc/ruby-style.el +++ b/misc/ruby-style.el @@ -54,6 +54,7 @@ (c-basic-offset . 4) (tab-width . 8) (indent-tabs-mode . t) + (setq show-trailing-whitespace t) (c-offsets-alist (case-label . *) (label . (ruby-style-label-indent *))