]> git.eshelyaron.com Git - emacs.git/commitdiff
(whitespace-buffer): Call remove-overlays after overlay-recenter for
authorChong Yidong <cyd@stupidchicken.com>
Tue, 7 Nov 2006 17:37:14 +0000 (17:37 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Tue, 7 Nov 2006 17:37:14 +0000 (17:37 +0000)
performance.  Suggested by Martin Rudalics.

lisp/whitespace.el

index 9c98b23cf287b40fa35e99ca8c20d0f4898d6783..cdb743c14949a08e0947d8f848e7cfe339922a77 100644 (file)
@@ -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)