unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* diff-mode and whitespace-mode
@ 2009-01-04 19:52 Dan Nicolaescu
  2009-01-24 13:38 ` Vinicius Jose Latorre
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Nicolaescu @ 2009-01-04 19:52 UTC (permalink / raw)
  To: emacs-devel


`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.




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: diff-mode and whitespace-mode
  2009-01-04 19:52 diff-mode and whitespace-mode Dan Nicolaescu
@ 2009-01-24 13:38 ` Vinicius Jose Latorre
  0 siblings, 0 replies; 2+ messages in thread
From: Vinicius Jose Latorre @ 2009-01-24 13:38 UTC (permalink / raw)
  To: Dan Nicolaescu; +Cc: emacs-devel

>
> `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.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-01-24 13:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-04 19:52 diff-mode and whitespace-mode Dan Nicolaescu
2009-01-24 13:38 ` Vinicius Jose Latorre

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).