(fill-individual-paragraphs): Calculate new
authorKarl Heuer <kwzh@gnu.org>
Fri, 30 Jul 1999 14:34:28 +0000 (14:34 +0000)
committerKarl Heuer <kwzh@gnu.org>
Fri, 30 Jul 1999 14:34:28 +0000 (14:34 +0000)
fill prefix on each line while looping to the end of paragraph.
End paragraph if it's longer than the existing fill prefix.

lisp/textmodes/fill.el

index e79b558..129fd42 100644 (file)
@@ -1127,6 +1127,13 @@ Also, if CITATION-REGEXP is non-nil,  don't fill header lines."
                          ;; If this line has more or less indent
                          ;; than the fill prefix wants, end the paragraph.
                          (and (looking-at fill-prefix-regexp)
+                              ;; If fill prefix is shorter than a new
+                              ;; fill prefix computed here, end paragraph.
+                              (let ((this-line-fill-prefix
+                                     (fill-individual-paragraphs-prefix 
+                                      citation-regexp)))
+                                (>= (length fill-prefix) 
+                                    (length this-line-fill-prefix)))
                               (save-excursion
                                 (not (progn (forward-char (length fill-prefix))
                                             (or (looking-at "[ \t]")