# HG changeset patch # User Richard M. Stallman # Date 899545449 0 # Node ID d858c344ab27a64d9b7474045fa52bcb17c51f36 # Parent 96320770e3d532e888cbc1ca60a8c4dbdfe5a53a (fill-individual-paragraphs): If JUST-ONE-LINE-PREFIX matches TWO-LINES-PREFIX except with longer whitespace, treat that as a match even is spaces are replaced with a tab. diff -r 96320770e3d5 -r d858c344ab27 lisp/textmodes/fill.el --- a/lisp/textmodes/fill.el Sat Jul 04 02:49:48 1998 +0000 +++ b/lisp/textmodes/fill.el Sat Jul 04 09:44:09 1998 +0000 @@ -1027,7 +1027,8 @@ ;; use that. (or (let ((adaptive-fill-first-line-regexp "") just-one-line-prefix - two-lines-prefix) + two-lines-prefix + adjusted-two-lines-prefix) (setq just-one-line-prefix (fill-context-prefix (point) @@ -1038,10 +1039,17 @@ (point) (save-excursion (forward-line 2) (point)))) + (setq adjusted-two-lines-prefix + (substring two-lines-prefix 0 + (string-match "[ \t]*\\'" + two-lines-prefix))) + ;; See if JUST-ONE-LINE-PREFIX + ;; is the same as TWO-LINES-PREFIX + ;; except perhaps with longer whitespace. (if (and just-one-line-prefix two-lines-prefix (string-match (concat "\\`" - (regexp-quote two-lines-prefix) + (regexp-quote adjusted-two-lines-prefix) "[ \t]*\\'") just-one-line-prefix)) two-lines-prefix @@ -1080,4 +1088,7 @@ (fill-region-as-paragraph start (point) justify) (or had-newline (delete-char -1)))))))) +(defun fill-strip-trailing-space (string) +)) + ;;; fill.el ends here