all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Sarah <sbrofeldt@gmail.com>
Cc: 9550-done@debbugs.gnu.org
Subject: bug#9550: Toggling whitespace modes appears to be broken in 24
Date: Mon, 19 Sep 2011 14:06:52 -0400	[thread overview]
Message-ID: <jwv7h54mmp0.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <m2wrd4vhs8.fsf@gmail.com> (Sarah's message of "Mon, 19 Sep 2011 14:27:35 +0200")

>>>>> "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)))
 
 \f






      reply	other threads:[~2011-09-19 18:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-19 12:27 bug#9550: Toggling whitespace modes appears to be broken in 24 Sarah
2011-09-19 18:06 ` Stefan Monnier [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwv7h54mmp0.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=9550-done@debbugs.gnu.org \
    --cc=sbrofeldt@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.