Subject: Re: bug#12496: 24.2; global newline mode shows whitespace too

From: Glenn Morris <[email-masked]>
Date: Thu, 27 Sep 2012 02:41:40 -0400

Steven Degutis wrote:

> putting (global-whitespace-newline-mode) in my init.el file makes all
> whitespace appear, not just newlines. the work-around that jlp gave me
> is to use '(whitespace-style (quote (newline newline-mark))) but he said
> it's definitely a bug that i should report.

Thanks for the report.
global-whitespace-newline-mode basically does this:

(let ((whitespace-style '(newline-mark newline)))
  (global-whitespace-mode 1))

So it does the right thing in existing buffers, but not in future
buffers that are created later (because whitespace-style is back to its
default value).

I don't know why global-whitespace-newline-mode even needs to exist.
It would be simpler to remove it and just say "customize
whitespace-style to whatever you want, and call global-whitespace-mode".