bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9550: Toggling whitespace modes appears to be broken in 24


From: Stefan Monnier
Subject: bug#9550: Toggling whitespace modes appears to be broken in 24
Date: Mon, 19 Sep 2011 14:06:52 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

>>>>> "Sarah" == Sarah  <sbrofeldt@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)))
 
 






reply via email to

[Prev in Thread] Current Thread [Next in Thread]