Mercurial > emacs
changeset 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 | adc9cc710487 |
children | f60520f272bb |
files | lisp/replace.el |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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)