Mercurial > emacs
diff lisp/replace.el @ 36076:b7b3034a7f6d
(occur): Stop at end of buffer.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Tue, 13 Feb 2001 20:07:50 +0000 |
parents | 816fa0390935 |
children | 0e883854b9fc |
line wrap: on
line diff
--- a/lisp/replace.el Tue Feb 13 20:03:38 2001 +0000 +++ b/lisp/replace.el Tue Feb 13 20:07:50 2001 +0000 @@ -623,7 +623,7 @@ (goto-char (point-max))) (save-excursion ;; Find next match, but give up if prev match was at end of buffer. - (while (and (not (= prevpos (point-max))) + (while (and (not (eobp)) (re-search-forward regexp nil t)) (goto-char (match-beginning 0)) (beginning-of-line)