# HG changeset patch # User Richard M. Stallman # Date 790488126 0 # Node ID 765fe4b8deaf62428e5dc756c523ed29d737190f # Parent 4f1637fdc916f5d45627b1df980bf39aea0cb552 (forward-paragraph): Fix end-of-buffer bug. diff -r 4f1637fdc916 -r 765fe4b8deaf lisp/textmodes/paragraphs.el --- a/lisp/textmodes/paragraphs.el Wed Jan 18 23:23:58 1995 +0000 +++ b/lisp/textmodes/paragraphs.el Thu Jan 19 04:02:06 1995 +0000 @@ -142,8 +142,8 @@ (not (looking-at-hard paragraph-separate)) (looking-at fill-prefix-regexp)) (forward-line 1)) - (while (and (not (eobp)) - (re-search-forward paragraph-start nil 1) + (while (and (re-search-forward paragraph-start nil 1) + (not (eobp)) use-hard-newlines (null (get-text-property (1- (match-beginning 0)) 'hard))) (forward-char 1))