]> code.delx.au - gnu-emacs/blobdiff - lisp/textmodes/paragraphs.el
(forward-paragraph): Don't overlook a paragraph-start
[gnu-emacs] / lisp / textmodes / paragraphs.el
index 65372363661fc6bf98b52fdf9879188571af5a3d..9a50e555f586811922307474eae1c62460f958e7 100644 (file)
@@ -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