Mercurial > emacs
changeset 20263:7808c4885103
(fill-individual-paragraphs): Don't get
confused in paragraph loop if we start on the last line
and it has no final newline.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Sat, 15 Nov 1997 20:58:28 +0000 |
parents | c6532008f2a9 |
children | 3b9b07f3eab5 |
files | lisp/textmodes/fill.el |
diffstat | 1 files changed, 5 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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)