changeset 73829:201aa7c21cab

(remove-overlays): Call overlay-recenter.
author Richard M. Stallman <rms@gnu.org>
date Wed, 08 Nov 2006 17:31:29 +0000
parents 0f89186ff97e
children 3e5a1c03f61a
files lisp/subr.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/subr.el	Wed Nov 08 14:15:23 2006 +0000
+++ b/lisp/subr.el	Wed Nov 08 17:31:29 2006 +0000
@@ -1960,6 +1960,8 @@
   "Clear BEG and END of overlays whose property NAME has value VAL.
 Overlays might be moved and/or split.
 BEG and END default respectively to the beginning and end of buffer."
+  ;; This speeds up the loops over overlays.
+  (overlay-recented (point-max))
   (unless beg (setq beg (point-min)))
   (unless end (setq end (point-max)))
   (if (< end beg)