all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#11353: 24.0.95; whitespace-mode
@ 2012-04-26 11:39 Lars Petter Mostad
  2013-05-16 14:41 ` bug#11353: Suggested patch to whitespace.el Jeremy Moore
  2017-04-02  0:44 ` bug#11353: 24.0.95; whitespace-mode npostavs
  0 siblings, 2 replies; 3+ messages in thread
From: Lars Petter Mostad @ 2012-04-26 11:39 UTC (permalink / raw)
  To: 11353

When opening file, then running M-x global-whitespace-mode, the running
M-x global-whitespace-mode, everything is OK.

When running M-x global-whitespace-mode, then opening file, and then
running M-x global-whitespace-mode, the mode line shows the WS minor
mode disappear, but whitespace is still highlighted.


In GNU Emacs 24.0.95.1 (i386-mingw-nt6.1.7601)
of 2012-04-03 on MARVIN
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --with-gcc (4.6) --no-opt --enable-checking --cflags
-ID:/devel/emacs/libs/libXpm-3.5.8/include
-ID:/devel/emacs/libs/libXpm-3.5.8/src
-ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
-ID:/devel/emacs/libs/giflib-4.1.4-1/include
-ID:/devel/emacs/libs/jpeg-6b-4/include
-ID:/devel/emacs/libs/tiff-3.8.2-1/include
-ID:/devel/emacs/libs/gnutls-3.0.9/include'

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: NOR
  value of $XMODIFIERS: nil
  locale-coding-system: cp1252
  default enable-multibyte-characters: t

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
M-x r e <tab> =E5 <tab> <backspace> p <tab> o r <tab>=20
<return>

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Making completion list... [2 times]

Load-path shadows:
None found.

Features:
(shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml
mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev
gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils help-mode easymenu view time-date tooltip
ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp
w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register
page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core frame cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs
button faces cus-face files text-properties overlay sha1 md5 base64
format env code-pages mule custom widget hashtable-print-readable
backquote make-network-process multi-tty emacs)





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#11353: Suggested patch to whitespace.el
  2012-04-26 11:39 bug#11353: 24.0.95; whitespace-mode Lars Petter Mostad
@ 2013-05-16 14:41 ` Jeremy Moore
  2017-04-02  0:44 ` bug#11353: 24.0.95; whitespace-mode npostavs
  1 sibling, 0 replies; 3+ messages in thread
From: Jeremy Moore @ 2013-05-16 14:41 UTC (permalink / raw)
  To: 11353; +Cc: viniciusjl

[-- Attachment #1: Type: text/plain, Size: 1613 bytes --]

(whitespace-turn-on-if-enabled) gets called multiple times by hooks when a
file is opened. The value of font-lock-keywords is changed by the first
call, and subsequent calls record that value into
whitespace-font-lock-keywords. When GWM is disabled, the value restored to
font-lock-keywords still includes highlighting for white space characters.

How's this change?

*** whitespace.el.orig    Thu May 16 15:22:05 2013
--- whitespace.el    Thu May 16 15:22:59 2013
*************** resultant list will be returned."
*** 2176,2183 ****
    (add-hook 'write-file-functions 'whitespace-write-file-hook nil t)
    ;; create whitespace local buffer environment
    (set (make-local-variable 'whitespace-font-lock-mode) nil)
!   (set (make-local-variable 'whitespace-font-lock) nil)
!   (set (make-local-variable 'whitespace-font-lock-keywords) nil)
    (set (make-local-variable 'whitespace-display-table) nil)
    (set (make-local-variable 'whitespace-display-table-was-local) nil)
    (set (make-local-variable 'whitespace-active-style)
--- 2176,2184 ----
    (add-hook 'write-file-functions 'whitespace-write-file-hook nil t)
    ;; create whitespace local buffer environment
    (set (make-local-variable 'whitespace-font-lock-mode) nil)
!   (unless whitespace-font-lock
!     (set (make-local-variable 'whitespace-font-lock) nil)
!     (set (make-local-variable 'whitespace-font-lock-keywords) nil))
    (set (make-local-variable 'whitespace-display-table) nil)
    (set (make-local-variable 'whitespace-display-table-was-local) nil)
    (set (make-local-variable 'whitespace-active-style)


Regards,
Jeremy Moore

[-- Attachment #2: Type: text/html, Size: 1807 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#11353: 24.0.95; whitespace-mode
  2012-04-26 11:39 bug#11353: 24.0.95; whitespace-mode Lars Petter Mostad
  2013-05-16 14:41 ` bug#11353: Suggested patch to whitespace.el Jeremy Moore
@ 2017-04-02  0:44 ` npostavs
  1 sibling, 0 replies; 3+ messages in thread
From: npostavs @ 2017-04-02  0:44 UTC (permalink / raw)
  To: Lars Petter Mostad; +Cc: 11353

retitle 11353 M-x global-whitespace-mode, open file, M-x global-whitespace-mode, doesn't toggle off correctly
found 11353 24.3
tags 11353 fixed
close 11353 24.4
quit

Lars Petter Mostad <larspm@gmail.com> writes:

> When opening file, then running M-x global-whitespace-mode, the running
> M-x global-whitespace-mode, everything is OK.
>
> When running M-x global-whitespace-mode, then opening file, and then
> running M-x global-whitespace-mode, the mode line shows the WS minor
> mode disappear, but whitespace is still highlighted.

This happens in 24.3, but not in 24.4 and above.






^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-04-02  0:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-26 11:39 bug#11353: 24.0.95; whitespace-mode Lars Petter Mostad
2013-05-16 14:41 ` bug#11353: Suggested patch to whitespace.el Jeremy Moore
2017-04-02  0:44 ` bug#11353: 24.0.95; whitespace-mode npostavs

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.