changeset 15308:9a31b0d0c38a

(fill-individual-paragraphs): Don't get stuck if no newline at the end of the region.
author Richard M. Stallman <rms@gnu.org>
date Fri, 31 May 1996 04:17:02 +0000
parents 08ce5fa97ce3
children 577024cb8653
files lisp/textmodes/fill.el
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/fill.el	Thu May 30 23:11:14 1996 +0000
+++ b/lisp/textmodes/fill.el	Fri May 31 04:17:02 1996 +0000
@@ -828,7 +828,10 @@
 						(point))))
 			     fill-prefix-regexp (regexp-quote fill-prefix)))
 		   (forward-line 1)
-		   (move-to-left-margin)
+		   (if (bolp)
+		       ;; If forward-line went past a newline,
+		       ;; move further to the left margin.
+		       (move-to-left-margin))
 		   ;; Now stop the loop if end of paragraph.
 		   (and (not (eobp))
 			(if fill-individual-varying-indent