]> code.delx.au - gnu-emacs/commitdiff
(remove-overlays): Fix last change.
authorRichard M. Stallman <rms@gnu.org>
Sun, 12 Nov 2006 19:55:58 +0000 (19:55 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 12 Nov 2006 19:55:58 +0000 (19:55 +0000)
lisp/subr.el

index 4748b4d8dcb8bad6739682dbad7cd4fbc4a6b940..87ba9d5833eeaa769f3a4657d9461782468f558b 100644 (file)
@@ -1961,9 +1961,9 @@ If MESSAGE is nil, instructions to type EXIT-CHAR are displayed there."
 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-recenter (point-max))
   (unless beg (setq beg (point-min)))
   (unless end (setq end (point-max)))
+  (overlay-recenter end)
   (if (< end beg)
       (setq beg (prog1 end (setq end beg))))
   (save-excursion