diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/whitespace.el | 6 |
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 | ||
| 6 | 2013-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 | |||
| 6 | 2013-04-05 Jacek Chrząszcz <chrzaszcz@mimuw.edu.pl> (tiny change) | 11 | 2013-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) |