emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: diff-mode and whitespace-mode


From: Vinicius Jose Latorre
Subject: Re: diff-mode and whitespace-mode
Date: Sat, 24 Jan 2009 11:38:59 -0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20081204 SeaMonkey/1.1.14


`diff-show-trailing-whitespaces' sets `whitespace-style' and
`whitespace-trailing-regexp' and then calls `whitespace-mode'.

`diff-mode' could set those 2 variables, and then calling
`whitespace-mode' would show trailing whitespaces in diff-mode, and the
`diff-show-trailing-whitespaces' function could be removed.

The above would work if whitespace-style and whitespace-trailing-regexp
were not used for some other purpose in conjunction with diff-mode.
Stefan asks if that is indeed the case.

Yes, it's the case.

I've just seen diff-mode.el and it seems the modification is ok.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]