changeset 19810:495951c8a761

(fill-individual-paragraphs): Don't include paragraph-separate lines in any paragraph; just skip them.
author Richard M. Stallman <rms@gnu.org>
date Mon, 08 Sep 1997 06:47:05 +0000
parents ae1fd7734db0
children 66b7051ac215
files lisp/textmodes/fill.el
diffstat 1 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/textmodes/fill.el	Mon Sep 08 03:24:58 1997 +0000
+++ b/lisp/textmodes/fill.el	Mon Sep 08 06:47:05 1997 +0000
@@ -939,7 +939,13 @@
 	      (forward-line 1))))
       (narrow-to-region (point) max)
       ;; Loop over paragraphs.
-      (while (progn (skip-chars-forward " \t\n") (not (eobp)))
+      (while (progn
+	       ;; 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)))
+                 (forward-line 1))
+               (skip-chars-forward " \t\n") (not (eobp)))
 	(move-to-left-margin)
 	(let ((start (point))
 	      fill-prefix fill-prefix-regexp)