GNU bug report logs - #12496
24.2; global newline mode shows whitespace too

Previous Next

Package: emacs;

Reported by: Steven Degutis <sdegutis <at> 8thlight.com>

Date: Sun, 23 Sep 2012 18:21:03 UTC

Severity: normal

Tags: confirmed

Found in version 24.2

Fixed in version 28.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Glenn Morris <rgm <at> gnu.org>
To: Steven Degutis <sdegutis <at> 8thlight.com>
Cc: viniciusjl <at> ig.com.br, 12496 <at> debbugs.gnu.org
Subject: bug#12496: 24.2; global newline mode shows whitespace too
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".




This bug report was last modified 3 years and 360 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.