aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1999-07-30 14:34:28 +0000
committerKarl Heuer1999-07-30 14:34:28 +0000
commitcc7e9720375a3e52a5566351ae8c8f84d096ea72 (patch)
treecb1a6711c37b7ab1e5091bbbd29fc2333bacc3e2
parent39f5988df8a361b2367db388812ecb7fe076a39f (diff)
downloademacs-cc7e9720375a3e52a5566351ae8c8f84d096ea72.tar.gz
emacs-cc7e9720375a3e52a5566351ae8c8f84d096ea72.zip
(fill-individual-paragraphs): Calculate new
fill prefix on each line while looping to the end of paragraph. End paragraph if it's longer than the existing fill prefix.
-rw-r--r--lisp/textmodes/fill.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el
index e79b5588a91..129fd42986a 100644
--- a/lisp/textmodes/fill.el
+++ b/lisp/textmodes/fill.el
@@ -1127,6 +1127,13 @@ Also, if CITATION-REGEXP is non-nil, don't fill header lines."
1127 ;; If this line has more or less indent 1127 ;; If this line has more or less indent
1128 ;; than the fill prefix wants, end the paragraph. 1128 ;; than the fill prefix wants, end the paragraph.
1129 (and (looking-at fill-prefix-regexp) 1129 (and (looking-at fill-prefix-regexp)
1130 ;; If fill prefix is shorter than a new
1131 ;; fill prefix computed here, end paragraph.
1132 (let ((this-line-fill-prefix
1133 (fill-individual-paragraphs-prefix
1134 citation-regexp)))
1135 (>= (length fill-prefix)
1136 (length this-line-fill-prefix)))
1130 (save-excursion 1137 (save-excursion
1131 (not (progn (forward-char (length fill-prefix)) 1138 (not (progn (forward-char (length fill-prefix))
1132 (or (looking-at "[ \t]") 1139 (or (looking-at "[ \t]")