From: Richard M. Stallman Date: Thu, 19 Jan 1995 04:02:06 +0000 (+0000) Subject: (forward-paragraph): Fix end-of-buffer bug. X-Git-Tag: emacs-19.34~5394 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=650f194c5accb990c199fd802fd6778ca5b394c8;p=emacs.git (forward-paragraph): Fix end-of-buffer bug. --- diff --git a/lisp/textmodes/paragraphs.el b/lisp/textmodes/paragraphs.el index c85b15249f3..0edfe88c876 100644 --- a/lisp/textmodes/paragraphs.el +++ b/lisp/textmodes/paragraphs.el @@ -142,8 +142,8 @@ to which the end of the previous line belongs, or the end of the buffer." (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))