summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2006-11-07 17:37:14 +0000
committerChong Yidong <cyd@stupidchicken.com>2006-11-07 17:37:14 +0000
commit8eda2ca3b30653c761cfdd692bc6fda8af257cf9 (patch)
treeb8cc208c81e4f9556099182798a60b3de4353536 /lisp
parent47eff51e1a24617e071d7c33ab9d9200b351659e (diff)
downloademacs-8eda2ca3b30653c761cfdd692bc6fda8af257cf9.tar.gz
emacs-8eda2ca3b30653c761cfdd692bc6fda8af257cf9.tar.bz2
emacs-8eda2ca3b30653c761cfdd692bc6fda8af257cf9.zip
(whitespace-buffer): Call remove-overlays after overlay-recenter for
performance. Suggested by Martin Rudalics.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/whitespace.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/whitespace.el b/lisp/whitespace.el
index 9c98b23cf28..cdb743c1494 100644
--- a/lisp/whitespace.el
+++ b/lisp/whitespace.el
@@ -425,8 +425,8 @@ and:
(progn
(whitespace-check-buffer-list (buffer-name) buffer-file-name)
(whitespace-tickle-timer)
- (remove-overlays nil nil 'face 'whitespace-highlight)
(overlay-recenter (point-max))
+ (remove-overlays nil nil 'face 'whitespace-highlight)
(if whitespace-auto-cleanup
(if buffer-read-only
(if (not quiet)