aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Gutov2013-04-06 02:22:12 +0400
committerDmitry Gutov2013-04-06 02:22:12 +0400
commitd695cb94fb71c8c8d4822fbf9d702dbda3252aac (patch)
treed626a770c08ba7aa1c6ba96a810ce44c849ca960
parent134abf1faef6596a62d3c04769e212b99f621d49 (diff)
downloademacs-d695cb94fb71c8c8d4822fbf9d702dbda3252aac.tar.gz
emacs-d695cb94fb71c8c8d4822fbf9d702dbda3252aac.zip
* lisp/whitespace.el (whitespace-color-on, whitespace-color-off): Only
call `font-lock-fontify-buffer' when `font-lock-mode' is on.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/whitespace.el6
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b3073dd9499..1af9905c7e3 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -3,6 +3,11 @@
3 * emacs-lisp/package.el (package-compute-transaction): Fix last fix. 3 * emacs-lisp/package.el (package-compute-transaction): Fix last fix.
4 Suggested by Donald Curtis <dcurtis@coe.edu> (bug#14082). 4 Suggested by Donald Curtis <dcurtis@coe.edu> (bug#14082).
5 5
62013-04-05 Dmitry Gutov <dgutov@yandex.ru>
7
8 * whitespace.el (whitespace-color-on, whitespace-color-off): Only
9 call `font-lock-fontify-buffer' when `font-lock-mode' is on.
10
62013-04-05 Jacek Chrząszcz <chrzaszcz@mimuw.edu.pl> (tiny change) 112013-04-05 Jacek Chrząszcz <chrzaszcz@mimuw.edu.pl> (tiny change)
7 12
8 * ispell.el (ispell-set-spellchecker-params): 13 * ispell.el (ispell-set-spellchecker-params):
diff --git a/lisp/whitespace.el b/lisp/whitespace.el
index c32155f5430..68625e06acb 100644
--- a/lisp/whitespace.el
+++ b/lisp/whitespace.el
@@ -2243,7 +2243,8 @@ resultant list will be returned."
2243 (whitespace-space-after-tab-regexp 'space))) 2243 (whitespace-space-after-tab-regexp 'space)))
2244 1 whitespace-space-after-tab t))))) 2244 1 whitespace-space-after-tab t)))))
2245 (font-lock-add-keywords nil whitespace-font-lock-keywords t) 2245 (font-lock-add-keywords nil whitespace-font-lock-keywords t)
2246 (font-lock-fontify-buffer))) 2246 (when font-lock-mode
2247 (font-lock-fontify-buffer))))
2247 2248
2248 2249
2249(defun whitespace-color-off () 2250(defun whitespace-color-off ()
@@ -2253,7 +2254,8 @@ resultant list will be returned."
2253 (remove-hook 'post-command-hook #'whitespace-post-command-hook t) 2254 (remove-hook 'post-command-hook #'whitespace-post-command-hook t)
2254 (remove-hook 'before-change-functions #'whitespace-buffer-changed t) 2255 (remove-hook 'before-change-functions #'whitespace-buffer-changed t)
2255 (font-lock-remove-keywords nil whitespace-font-lock-keywords) 2256 (font-lock-remove-keywords nil whitespace-font-lock-keywords)
2256 (font-lock-fontify-buffer))) 2257 (when font-lock-mode
2258 (font-lock-fontify-buffer))))
2257 2259
2258 2260
2259(defun whitespace-trailing-regexp (limit) 2261(defun whitespace-trailing-regexp (limit)