1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-06 11:55:48 +00:00

* whitespace.el (global-whitespace-newline-mode): Fix call

to minor mode which used nil accidentally to mean "turn off".

Fixes: debbugs:7810
This commit is contained in:
Stefan Monnier 2011-01-10 19:14:25 -05:00
parent 01d70c32ce
commit cfab9f9bd7
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-01-11 Stefan Monnier <monnier@iro.umontreal.ca>
* whitespace.el (global-whitespace-newline-mode): Fix call (bug#7810)
to minor mode which used nil accidentally to mean "turn off".
2011-01-10 Michael Albinus <michael.albinus@gmx.de>
* net/tramp.el (tramp-find-inline-compress)

View File

@ -1188,7 +1188,8 @@ See also `whitespace-newline' and `whitespace-display-mappings'."
:global t
:group 'whitespace
(let ((whitespace-style '(newline-mark newline)))
(global-whitespace-mode global-whitespace-newline-mode)
(global-whitespace-mode (if global-whitespace-newline-mode
1 -1))
;; sync states (running a batch job)
(setq global-whitespace-newline-mode global-whitespace-mode)))