* [PATCH] whitespace.el leaves a spurious entry in post-command-hook
@ 2010-08-08 22:35 Geoff Gole
2010-08-09 2:23 ` Chong Yidong
0 siblings, 1 reply; 2+ messages in thread
From: Geoff Gole @ 2010-08-08 22:35 UTC (permalink / raw)
To: Emacs development discussions
Start an emacs -Q and do M-x whitespace-mode twice. There will be a
local entry left in post-command-hook.
The cause is that an appropriate call to remove-hook exists, but lacks
the `local' argument. The fix is to add it:
*** /usr/local/share/emacs/24.0.50/lisp/whitespace.el.gz
--- /tmp/buffer-content-4209UhA
***************
*** 2296,2302 ****
;; turn off font lock
(when (whitespace-style-face-p)
(font-lock-mode 0)
! (remove-hook 'post-command-hook #'whitespace-post-command-hook)
(when whitespace-font-lock
(setq whitespace-font-lock nil
font-lock-keywords whitespace-font-lock-keywords))
--- 2296,2302 ----
;; turn off font lock
(when (whitespace-style-face-p)
(font-lock-mode 0)
! (remove-hook 'post-command-hook #'whitespace-post-command-hook t)
(when whitespace-font-lock
(setq whitespace-font-lock nil
font-lock-keywords whitespace-font-lock-keywords))
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-08-09 2:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-08 22:35 [PATCH] whitespace.el leaves a spurious entry in post-command-hook Geoff Gole
2010-08-09 2:23 ` Chong Yidong
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.