From: Richard M. Stallman Date: Tue, 8 Aug 1995 08:12:07 +0000 (+0000) Subject: (forward-paragraph): Don't overlook a paragraph-start X-Git-Tag: emacs-19.34~3056 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4669fb3c766c4af503aa24ae9987bda7c1cdb40f;p=emacs.git (forward-paragraph): Don't overlook a paragraph-start line just because it ends at eob. --- diff --git a/lisp/textmodes/paragraphs.el b/lisp/textmodes/paragraphs.el index 65372363661..9a50e555f58 100644 --- a/lisp/textmodes/paragraphs.el +++ b/lisp/textmodes/paragraphs.el @@ -202,10 +202,10 @@ to which the end of the previous line belongs, or the end of the buffer." (looking-at fill-prefix-regexp)) (forward-line 1)) (while (and (re-search-forward sp-paragraph-start nil 1) - (not (eobp)) (progn (setq start (match-beginning 0)) (goto-char start) - (move-to-left-margin) + (not (eobp))) + (progn (move-to-left-margin) (not (looking-at paragraph-separate))) (or (not (looking-at paragraph-start)) (and use-hard-newlines