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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Steven Degutis <sdegutis@HIDDEN>; Keywords: confirmed; dated Sun, 23 Sep 2012 18:21:03 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 12496 <at> debbugs.gnu.org:


Received: (at 12496) by debbugs.gnu.org; 27 Sep 2012 06:41:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Sep 27 02:41:50 2012
Received: from localhost ([127.0.0.1]:57854 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TH7nB-0006no-LC
	for submit <at> debbugs.gnu.org; Thu, 27 Sep 2012 02:41:50 -0400
Received: from fencepost.gnu.org ([208.118.235.10]:36568)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <rgm@HIDDEN>) id 1TH7n6-0006nd-4F
	for 12496 <at> debbugs.gnu.org; Thu, 27 Sep 2012 02:41:45 -0400
Received: from rgm by fencepost.gnu.org with local (Exim 4.71)
	(envelope-from <rgm@HIDDEN>)
	id 1TH7n2-0005ck-RH; Thu, 27 Sep 2012 02:41:40 -0400
From: Glenn Morris <rgm@HIDDEN>
To: Steven Degutis <sdegutis@HIDDEN>
Subject: Re: bug#12496: 24.2; global newline mode shows whitespace too
References: <CAD3zCQQ=BZPRfr568ODBBW-2AampXW+RDRwdu0Pk80Up5tjxEw@HIDDEN>
X-Spook: assassination HAMASMOIS MIT-LL Plame Etacs Albania
X-Ran: HFyX7?Ps-K*x21s>d(?+~Eo!nuXO/)^>+$(!XV^F%F-FV=tY"Ij0nk?zO~8us%ni:x\Hox
X-Hue: cyan
X-Debbugs-No-Ack: yes
X-Attribution: GM
Date: Thu, 27 Sep 2012 02:41:40 -0400
In-Reply-To: <CAD3zCQQ=BZPRfr568ODBBW-2AampXW+RDRwdu0Pk80Up5tjxEw@HIDDEN>
	(Steven Degutis's message of "Sun, 23 Sep 2012 12:41:43 -0500")
Message-ID: <nb4nmkynkr.fsf@HIDDEN>
User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Spam-Score: -6.5 (------)
X-Debbugs-Envelope-To: 12496
Cc: viniciusjl@HIDDEN, 12496 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.5 (------)

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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#12496; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Sep 2012 18:20:38 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Sep 23 14:20:38 2012
Received: from localhost ([127.0.0.1]:51494 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1TFqnF-0003iS-JP
	for submit <at> debbugs.gnu.org; Sun, 23 Sep 2012 14:20:38 -0400
Received: from eggs.gnu.org ([208.118.235.92]:34641)
	by debbugs.gnu.org with esmtp (Exim 4.72)
	(envelope-from <sdegutis@HIDDEN>) id 1TFqDT-0002uA-6Y
	for submit <at> debbugs.gnu.org; Sun, 23 Sep 2012 13:43:40 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sdegutis@HIDDEN>) id 1TFqBg-00067P-IN
	for submit <at> debbugs.gnu.org; Sun, 23 Sep 2012 13:41:49 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,HTML_MESSAGE,
	RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.2
Received: from lists.gnu.org ([208.118.235.17]:33312)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sdegutis@HIDDEN>) id 1TFqBg-00067H-Cu
	for submit <at> debbugs.gnu.org; Sun, 23 Sep 2012 13:41:48 -0400
Received: from eggs.gnu.org ([208.118.235.92]:35316)
	by lists.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sdegutis@HIDDEN>) id 1TFqBe-0006JD-R9
	for bug-gnu-emacs@HIDDEN; Sun, 23 Sep 2012 13:41:48 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
	(envelope-from <sdegutis@HIDDEN>) id 1TFqBd-00066v-2x
	for bug-gnu-emacs@HIDDEN; Sun, 23 Sep 2012 13:41:46 -0400
Received: from mail-vc0-f169.google.com ([209.85.220.169]:46994)
	by eggs.gnu.org with esmtp (Exim 4.71)
	(envelope-from <sdegutis@HIDDEN>) id 1TFqBc-00066n-UF
	for bug-gnu-emacs@HIDDEN; Sun, 23 Sep 2012 13:41:45 -0400
Received: by vcbfl17 with SMTP id fl17so6115605vcb.0
	for <bug-gnu-emacs@HIDDEN>; Sun, 23 Sep 2012 10:41:43 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
	d=google.com; s=20120113;
	h=mime-version:date:message-id:subject:from:to:content-type
	:x-gm-message-state;
	bh=YJQLouIOuU/DTj25LCxL8zRbQLPx02UtEKbTwPpyP5U=;
	b=hqztXIkrRtccBol4CJT9aOXD2uQVBp3n3/zm6mBfArqHbpWneUtuduue5VjnAGGrU0
	4kcESeFcCFtWRKWKnZXnomXBmld6Q1d7ocZVVZwuXpXxFxdsUqKBTkRGa3qfzQxLxpar
	mOHmxj0XLb8adX4x/++rFBKGxjSQ7X3oOoZBFTjrgDaOF9cT2QZnz8ziL8+oLeVDruOx
	nGkwOTt7gM5YldWL4iNpVzdZYlrFLf443nT/XYicMOpiAikhwXcsyvAZfCN92+nRstrW
	JGgfUnBtQXEZIiAbs/0fU8KG19/zrP7MI93yW8H3zzav73gymwkH2aIFsyLZ4vW9j++8
	5h4w==
MIME-Version: 1.0
Received: by 10.52.28.173 with SMTP id c13mr5032148vdh.48.1348422103792; Sun,
	23 Sep 2012 10:41:43 -0700 (PDT)
Received: by 10.58.198.52 with HTTP; Sun, 23 Sep 2012 10:41:43 -0700 (PDT)
Date: Sun, 23 Sep 2012 12:41:43 -0500
Message-ID: <CAD3zCQQ=BZPRfr568ODBBW-2AampXW+RDRwdu0Pk80Up5tjxEw@HIDDEN>
Subject: 24.2; global newline mode shows whitespace too
From: Steven Degutis <sdegutis@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Content-Type: multipart/alternative; boundary=20cf3079b6d080fb7104ca61fcde
X-Gm-Message-State: ALoCoQne6Rz932tnhlQZbFLuAf5C/MVjLZspF9bbzH/GXpgATCQXS+q9K5MG+sRWgffig0rMkA9N
X-detected-operating-system: by eggs.gnu.org: Genre and OS details not
	recognized.
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3)
X-Received-From: 208.118.235.17
X-Spam-Score: -6.2 (------)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sun, 23 Sep 2012 14:20:35 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.13
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>,
	<mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Sender: debbugs-submit-bounces <at> debbugs.gnu.org
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
X-Spam-Score: -6.2 (------)

--20cf3079b6d080fb7104ca61fcde
Content-Type: text/plain; charset=ISO-8859-1

This bug report will be sent to the Bug-GNU-Emacs mailing list

and the GNU bug tracker at debbugs.gnu.org.  Please check that

the From: line contains a valid email address.  After a delay of up

to one day, you should receive an acknowledgement at that address.


Please write in English if possible, as the Emacs maintainers

usually do not have translators for other languages.


Please describe exactly what actions triggered the bug, and

the precise symptoms of the bug.  If you can, give a recipe

starting from `emacs -Q':


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.


If Emacs crashed, and you have the Emacs process in the gdb debugger,

please include the output from the following gdb commands:

    `bt full' and `xbacktrace'.

For information about debugging Emacs, please read the file

/usr/local/Cellar/emacs/24.2/share/emacs/24.2/etc/DEBUG.



In GNU Emacs 24.2.1 (x86_64-apple-darwin12.2.0, NS apple-appkit-1187.34)

of 2012-09-22 on Stevens-MacBook-Pro-2.local

Windowing system distributor `Apple', version 10.3.1187

Configured using:

`configure '--prefix=/usr/local/Cellar/emacs/24.2' '--without-dbus'

'--enable-locallisppath=/usr/local/share/emacs/site-lisp'

'--infodir=/usr/local/Cellar/emacs/24.2/share/info/emacs' '--with-ns'

'--disable-ns-self-contained' 'CC=cc''


Important settings:

  value of $LC_ALL: nil

  value of $LC_COLLATE: nil

  value of $LC_CTYPE: nil

  value of $LC_MESSAGES: nil

  value of $LC_MONETARY: nil

  value of $LC_NUMERIC: nil

  value of $LC_TIME: nil

  value of $LANG: en_US.UTF-8

  value of $XMODIFIERS: nil

  locale-coding-system: utf-8-unix

  default enable-multibyte-characters: t


Major mode: Dired by name


Minor modes in effect:

  global-undo-tree-mode: t

  global-whitespace-newline-mode: t

  global-whitespace-mode: t

  tooltip-mode: t

  mouse-wheel-mode: t

  menu-bar-mode: t

  file-name-shadow-mode: t

  global-font-lock-mode: t

  font-lock-mode: t

  blink-cursor-mode: t

  auto-composition-mode: t

  auto-encryption-mode: t

  auto-compression-mode: t

  line-number-mode: t

  transient-mark-mode: t


Recent input:

<ns-open-file-line> <help-echo> M-x r e p o r t - e

m <tab> <return>


Recent messages:

For information about GNU Emacs and the GNU system, type C-h C-a.

ls does not support --dired; see `dired-use-ls-dired' for more details.


Load-path shadows:

None found.


Features:

(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml

mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev

gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util

mail-prsvr mail-utils disp-table undo-tree help-fns edmacro kmacro diff

go-mode-load dirtree dired-x dired regexp-opt windata tree-mode derived

easy-mmode easymenu tree-widget wid-edit cl ido whitespace time-date

tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win tool-bar dnd

fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer

select scroll-bar mouse jit-lock font-lock syntax facemenu font-core

frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai

tai-viet lao korean japanese hebrew greek romanian slovak czech european

ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help

simple abbrev minibuffer loaddefs button faces cus-face files

text-properties overlay sha1 md5 base64 format env code-pages mule

custom widget hashtable-print-readable backquote make-network-process ns

multi-tty emacs)

--20cf3079b6d080fb7104ca61fcde
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable









<p class=3D"p1">This bug report will be sent to the Bug-GNU-Emacs mailing l=
ist</p>
<p class=3D"p1">and the GNU bug tracker at <a href=3D"http://debbugs.gnu.or=
g">debbugs.gnu.org</a>.=A0 Please check that</p>
<p class=3D"p1">the From: line contains a valid email address.=A0 After a d=
elay of up</p>
<p class=3D"p1">to one day, you should receive an acknowledgement at that a=
ddress.</p>
<p class=3D"p2"><br></p>
<p class=3D"p1">Please write in English if possible, as the Emacs maintaine=
rs</p>
<p class=3D"p1">usually do not have translators for other languages.</p>
<p class=3D"p2"><br></p>
<p class=3D"p1">Please describe exactly what actions triggered the bug, and=
</p>
<p class=3D"p1">the precise symptoms of the bug.=A0 If you can, give a reci=
pe</p>
<p class=3D"p1">starting from `emacs -Q&#39;:</p>
<p class=3D"p2"><br></p>
<p class=3D"p1">putting (global-whitespace-newline-mode) in my init.el file=
 makes all</p>
<p class=3D"p1">whitespace appear, not just newlines. the work-around that =
jlp gave me</p>
<p class=3D"p1">is to use &#39;(whitespace-style (quote (newline newline-ma=
rk))) but he said</p>
<p class=3D"p1">it&#39;s definitely a bug that i should report.</p>
<p class=3D"p2"><br></p>
<p class=3D"p1">If Emacs crashed, and you have the Emacs process in the gdb=
 debugger,</p>
<p class=3D"p1">please include the output from the following gdb commands:<=
/p>
<p class=3D"p1">=A0 =A0 `bt full&#39; and `xbacktrace&#39;.</p>
<p class=3D"p1">For information about debugging Emacs, please read the file=
</p>
<p class=3D"p1">/usr/local/Cellar/emacs/24.2/share/emacs/24.2/etc/DEBUG.</p=
>
<p class=3D"p2"><br></p>
<p class=3D"p2"><br></p>
<p class=3D"p1">In GNU Emacs 24.2.1 (x86_64-apple-darwin12.2.0, NS apple-ap=
pkit-1187.34)</p>
<p class=3D"p1">of 2012-09-22 on Stevens-MacBook-Pro-2.local</p>
<p class=3D"p1">Windowing system distributor `Apple&#39;, version 10.3.1187=
</p>
<p class=3D"p1">Configured using:</p>
<p class=3D"p1">`configure &#39;--prefix=3D/usr/local/Cellar/emacs/24.2&#39=
; &#39;--without-dbus&#39;</p>
<p class=3D"p1">&#39;--enable-locallisppath=3D/usr/local/share/emacs/site-l=
isp&#39;</p>
<p class=3D"p1">&#39;--infodir=3D/usr/local/Cellar/emacs/24.2/share/info/em=
acs&#39; &#39;--with-ns&#39;</p>
<p class=3D"p1">&#39;--disable-ns-self-contained&#39; &#39;CC=3Dcc&#39;&#39=
;</p>
<p class=3D"p2"><br></p>
<p class=3D"p1">Important settings:</p>
<p class=3D"p1">=A0 value of $LC_ALL: nil</p>
<p class=3D"p1">=A0 value of $LC_COLLATE: nil</p>
<p class=3D"p1">=A0 value of $LC_CTYPE: nil</p>
<p class=3D"p1">=A0 value of $LC_MESSAGES: nil</p>
<p class=3D"p1">=A0 value of $LC_MONETARY: nil</p>
<p class=3D"p1">=A0 value of $LC_NUMERIC: nil</p>
<p class=3D"p1">=A0 value of $LC_TIME: nil</p>
<p class=3D"p1">=A0 value of $LANG: en_US.UTF-8</p>
<p class=3D"p1">=A0 value of $XMODIFIERS: nil</p>
<p class=3D"p1">=A0 locale-coding-system: utf-8-unix</p>
<p class=3D"p1">=A0 default enable-multibyte-characters: t</p>
<p class=3D"p2"><br></p>
<p class=3D"p1">Major mode: Dired by name</p>
<p class=3D"p2"><br></p>
<p class=3D"p1">Minor modes in effect:</p>
<p class=3D"p1">=A0 global-undo-tree-mode: t</p>
<p class=3D"p1">=A0 global-whitespace-newline-mode: t</p>
<p class=3D"p1">=A0 global-whitespace-mode: t</p>
<p class=3D"p1">=A0 tooltip-mode: t</p>
<p class=3D"p1">=A0 mouse-wheel-mode: t</p>
<p class=3D"p1">=A0 menu-bar-mode: t</p>
<p class=3D"p1">=A0 file-name-shadow-mode: t</p>
<p class=3D"p1">=A0 global-font-lock-mode: t</p>
<p class=3D"p1">=A0 font-lock-mode: t</p>
<p class=3D"p1">=A0 blink-cursor-mode: t</p>
<p class=3D"p1">=A0 auto-composition-mode: t</p>
<p class=3D"p1">=A0 auto-encryption-mode: t</p>
<p class=3D"p1">=A0 auto-compression-mode: t</p>
<p class=3D"p1">=A0 line-number-mode: t</p>
<p class=3D"p1">=A0 transient-mark-mode: t</p>
<p class=3D"p2"><br></p>
<p class=3D"p1">Recent input:</p>
<p class=3D"p1">&lt;ns-open-file-line&gt; &lt;help-echo&gt; M-x r e p o r t=
 - e=A0</p>
<p class=3D"p1">m &lt;tab&gt; &lt;return&gt;</p>
<p class=3D"p2"><br></p>
<p class=3D"p1">Recent messages:</p>
<p class=3D"p1">For information about GNU Emacs and the GNU system, type C-=
h C-a.</p>
<p class=3D"p1">ls does not support --dired; see `dired-use-ls-dired&#39; f=
or more details.</p>
<p class=3D"p2"><br></p>
<p class=3D"p1">Load-path shadows:</p>
<p class=3D"p1">None found.</p>
<p class=3D"p2"><br></p>
<p class=3D"p1">Features:</p>
<p class=3D"p1">(shadow sort gnus-util mail-extr emacsbug message format-sp=
ec rfc822 mml</p>
<p class=3D"p1">mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 ma=
ilabbrev</p>
<p class=3D"p1">gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm=
-util</p>
<p class=3D"p1">mail-prsvr mail-utils disp-table undo-tree help-fns edmacro=
 kmacro diff</p>
<p class=3D"p1">go-mode-load dirtree dired-x dired regexp-opt windata tree-=
mode derived</p>
<p class=3D"p1">easy-mmode easymenu tree-widget wid-edit cl ido whitespace =
time-date</p>
<p class=3D"p1">tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win t=
ool-bar dnd</p>
<p class=3D"p1">fontset image fringe lisp-mode register page menu-bar rfn-e=
shadow timer</p>
<p class=3D"p1">select scroll-bar mouse jit-lock font-lock syntax facemenu =
font-core</p>
<p class=3D"p1">frame cham georgian utf-8-lang misc-lang vietnamese tibetan=
 thai</p>
<p class=3D"p1">tai-viet lao korean japanese hebrew greek romanian slovak c=
zech european</p>
<p class=3D"p1">ethiopic indian cyrillic chinese case-table epa-hook jka-cm=
pr-hook help</p>
<p class=3D"p1">simple abbrev minibuffer loaddefs button faces cus-face fil=
es</p>
<p class=3D"p1">text-properties overlay sha1 md5 base64 format env code-pag=
es mule</p>
<p class=3D"p1">custom widget hashtable-print-readable backquote make-netwo=
rk-process ns</p>
<p class=3D"p1">multi-tty emacs)</p>

--20cf3079b6d080fb7104ca61fcde--




Acknowledgement sent to Steven Degutis <sdegutis@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#12496; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 31 Oct 2014 17:00:04 UTC

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