From: Richard M. Stallman Date: Sun, 12 Nov 2006 19:55:58 +0000 (+0000) Subject: (remove-overlays): Fix last change. X-Git-Tag: emacs-pretest-22.0.91~114 X-Git-Url: https://code.delx.au/gnu-emacs/commitdiff_plain/ee6bb6939fe507dc98986bfc23794da6110f61ef (remove-overlays): Fix last change. --- diff --git a/lisp/subr.el b/lisp/subr.el index 4748b4d8dc..87ba9d5833 100644 --- a/lisp/subr.el +++ b/lisp/subr.el @@ -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