# HG changeset patch # User Karl Heuer # Date 879627508 0 # Node ID 7808c48851037bb9c2282b75119b8114f487803f # Parent c6532008f2a93f872e8ca9508a8d0baee05a7875 (fill-individual-paragraphs): Don't get confused in paragraph loop if we start on the last line and it has no final newline. diff -r c6532008f2a9 -r 7808c4885103 lisp/textmodes/fill.el --- a/lisp/textmodes/fill.el Sat Nov 15 20:56:41 1997 +0000 +++ b/lisp/textmodes/fill.el Sat Nov 15 20:58:28 1997 +0000 @@ -969,11 +969,13 @@ (forward-line 1)))) (narrow-to-region (point) max) ;; Loop over paragraphs. - (while (progn + (while (let ((here (point))) ;; Skip over all paragraph-separating lines ;; so as to not include them in any paragraph. - (while (progn (move-to-left-margin) - (and (not (eobp)) (looking-at paragraph-separate))) + (while (and (not (eobp)) + (progn (move-to-left-margin) + (and (not (eobp)) + (looking-at paragraph-separate)))) (forward-line 1)) (skip-chars-forward " \t\n") (not (eobp))) (move-to-left-margin)