GNU bug report logs - #9550
Toggling whitespace modes appears to be broken in 24

Previous Next

Package: emacs;

Reported by: Sarah <sbrofeldt <at> gmail.com>

Date: Mon, 19 Sep 2011 12:51:02 UTC

Severity: normal

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 9550-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Sarah <sbrofeldt <at> gmail.com>
Cc: 9550-done <at> debbugs.gnu.org
Subject: Re: bug#9550: Toggling whitespace modes appears to be broken in 24
Date: Mon, 19 Sep 2011 14:06:52 -0400
>>>>> "Sarah" == Sarah  <sbrofeldt <at> gmail.com> writes:

> Toggling for instance whitespace-newline-mode does not work. Once it's
> on, it stays on. This seems to have some added symptoms of breaking the
> rest of whitespace too, on occasion.

> Steps to reproduce:

> M-x whitespace-newline-mode
> M-x whitespace-newline-mode

> That's it. :-)

Thanks.  I installed the patch below which should fix it.


        Stefan


=== modified file 'lisp/whitespace.el'
--- lisp/whitespace.el	2011-05-04 01:02:09 +0000
+++ lisp/whitespace.el	2011-09-19 18:05:20 +0000
@@ -1105,8 +1105,8 @@
   :global     nil
   :group      'whitespace
   (let ((whitespace-style '(face newline-mark newline)))
-    (whitespace-mode whitespace-newline-mode)
-    ;; sync states (running a batch job)
+    (whitespace-mode (if whitespace-newline-mode 1 -1))
+    ;; Sync states (running a batch job).
     (setq whitespace-newline-mode whitespace-mode)))
 
 





This bug report was last modified 13 years and 309 days ago.

Previous Next


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