GNU bug report logs - #11333
global-whitespace-mode doesn't enable whitespace mode in new fundamental-mode buffers

Previous Next

Package: emacs;

Reported by: Kelly Dean <kellydeanch <at> yahoo.com>

Date: Tue, 24 Apr 2012 20:04:02 UTC

Severity: minor

Tags: confirmed

Found in version 25.2

Fixed in version 26.1

Done: Noam Postavsky <npostavs <at> users.sourceforge.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 11333 in the body.
You can then email your comments to 11333 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#11333; Package emacs. (Tue, 24 Apr 2012 20:04:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kelly Dean <kellydeanch <at> yahoo.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Tue, 24 Apr 2012 20:04:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Kelly Dean <kellydeanch <at> yahoo.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Whitespace mode says it's enabled, when it's really not
Date: Tue, 24 Apr 2012 13:01:57 -0700 (PDT)
I'm using Emacs on X on Debian 6 Stable. emacs-version says GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0) of 2010-12-11 on raven, modified by Debian.
Steps to reproduce the bug:
Put in your init file just (global-whitespace-mode 1). Start Emacs.
Switch to the scratch buffer. The modeline says "Lisp Interaction WS". Type some whitespace which whitespace mode would highlight. Notice that it isn't highlighted. Do M-x global-whitespace-mode twice, to toggle it off and back on. Notice that the whitespace is now highlighted.
Make a new buffer. In the modeline it says "Fundamental WS". Type some whitespace. Same problem.
I'm told that in fundamental mode, Emacs intentionally doesn't enable global minor modes, because doing so would break things, which explains why it's initially disabled in your new buffer (though it doesn't explain why it's disabled in the scratch buffer, which isn't in fundamental mode). But if whitespace mode isn't enabled for a particular buffer, then putting "WS" in the modeline for that buffer is deceptive. It shouldn't do it.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11333; Package emacs. (Wed, 25 Apr 2012 03:04:02 GMT) Full text and rfc822 format available.

Message #8 received at 11333 <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: Kelly Dean <kellydeanch <at> yahoo.com>
Cc: 11333 <at> debbugs.gnu.org
Subject: Re: bug#11333: Whitespace mode says it's enabled, when it's really not
Date: Wed, 25 Apr 2012 11:02:38 +0800
Kelly Dean <kellydeanch <at> yahoo.com> writes:

> Put in your init file just (global-whitespace-mode 1). Start Emacs.
> Switch to the scratch buffer. The modeline says "Lisp Interaction
> WS". Type some whitespace which whitespace mode would
> highlight. Notice that it isn't highlighted.

Thanks for the bug report.  I can reproduce it in Emacs 23.4, but it
appears to be fixed already in the emacs-24 branch, so the fix will be
in the upcoming Emacs 24.1.




bug closed, send any further explanations to 11333 <at> debbugs.gnu.org and Kelly Dean <kellydeanch <at> yahoo.com> Request was from Chong Yidong <cyd <at> gnu.org> to control <at> debbugs.gnu.org. (Wed, 25 Apr 2012 03:04:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 23 May 2012 11:24:03 GMT) Full text and rfc822 format available.

bug unarchived. Request was from Kelly Dean <kellydeanch <at> yahoo.com> to control <at> debbugs.gnu.org. (Sat, 02 Jun 2012 21:57:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11333; Package emacs. (Sat, 02 Jun 2012 21:59:01 GMT) Full text and rfc822 format available.

Message #17 received at 11333 <at> debbugs.gnu.org (full text, mbox):

From: Kelly Dean <kellydeanch <at> yahoo.com>
To: 11333 <at> debbugs.gnu.org
Subject: Whitespace mode says it's enabled, when it's really not
Date: Sat, 2 Jun 2012 14:56:18 -0700 (PDT)
This bug is reproducible on 24.1-rc1. (emacs-version reports "GNU Emacs 24.1.1 (i686-pc-linux-gnu, X toolkit, Xaw scroll bars) of 2012-06-01 on localhost").
The scratch buffer is no longer affected, but fundamental mode buffers still are.
Start Emacs with (global-whitespace-mode 1) in your init file, and type C-x b foo ret. Type some text with a space at the end, press enter, and notice it doesn't highlight the space, even though the modeline says "Fundamental WS".
 Toggle global whitespace mode off and back on, and the space is highlighted.





Did not alter fixed versions and reopened. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 02 Jun 2012 22:59:02 GMT) Full text and rfc822 format available.

Changed bug title to 'global-whitespace-mode doesn't enable whitespace mode in new fundamental-mode buffers' from 'Whitespace mode says it's enabled, when it's really not' Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sun, 02 Apr 2017 00:49:01 GMT) Full text and rfc822 format available.

Severity set to 'minor' from 'normal' Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sun, 02 Apr 2017 00:49:01 GMT) Full text and rfc822 format available.

bug Marked as found in versions 25.2. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sun, 02 Apr 2017 00:49:02 GMT) Full text and rfc822 format available.

Added tag(s) confirmed. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sun, 02 Apr 2017 00:49:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11333; Package emacs. (Fri, 28 Apr 2017 22:02:02 GMT) Full text and rfc822 format available.

Message #30 received at 11333 <at> debbugs.gnu.org (full text, mbox):

From: Bartosz Duszel <dptdescribe <at> gmail.com>
To: 11333 <at> debbugs.gnu.org
Subject: Re: bug#11333: Whitespace mode says it's enabled, when it's really not
Date: Sat, 29 Apr 2017 00:01:21 +0200
Hello,
I tried to reproduce this issue on the current master branch but I failed. Maybe it is already fixed?

I am running:
GNU Emacs 26.0.50 (build 1, x86_64-apple-darwin16.5.0, NS appkit-1504.82 Version 10.12.4 (Build 16E195)) of 2017-04-23

My init file has only one line as requested. It correctly marks whitespaces in the buffer and removes trailing spaces.

Can anyone double check this?

Best regards,
Bartosz Duszel





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#11333; Package emacs. (Sat, 29 Apr 2017 02:43:01 GMT) Full text and rfc822 format available.

Message #33 received at 11333 <at> debbugs.gnu.org (full text, mbox):

From: npostavs <at> users.sourceforge.net
To: Bartosz Duszel <dptdescribe <at> gmail.com>
Cc: 11333 <at> debbugs.gnu.org, Kelly Dean <kellydeanch <at> yahoo.com>
Subject: Re: bug#11333: Whitespace mode says it's enabled, when it's really not
Date: Fri, 28 Apr 2017 22:43:51 -0400
fixed 11333 26.1
quit

Bartosz Duszel <dptdescribe <at> gmail.com> writes:

> I tried to reproduce this issue on the current master branch but I failed. Maybe it is already fixed?
>
> I am running:
> GNU Emacs 26.0.50 (build 1, x86_64-apple-darwin16.5.0, NS appkit-1504.82 Version 10.12.4 (Build 16E195)) of 2017-04-23
>
> My init file has only one line as requested. It correctly marks whitespaces in the buffer and removes trailing spaces.
>
> Can anyone double check this?

It occurs in 25.2, but seems to be fixed in master.




bug Marked as fixed in versions 26.1. Request was from npostavs <at> users.sourceforge.net to control <at> debbugs.gnu.org. (Sat, 29 Apr 2017 02:43:02 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 11333 <at> debbugs.gnu.org and Kelly Dean <kellydeanch <at> yahoo.com> Request was from Noam Postavsky <npostavs <at> users.sourceforge.net> to control <at> debbugs.gnu.org. (Wed, 31 Jan 2018 01:03:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 28 Feb 2018 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 111 days ago.

Previous Next


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