# HG changeset patch # User Stefan Monnier # Date 1004670631 0 # Node ID 9e19d0344da580613ea488e0ee2d8e96e1d34df2 # Parent 39fc5111667cf26359499a6d5a1159d4c02da72a (fill-region-as-paragraph): Don't forget to skip over current whitespace before looking for a preceding space. diff -r 39fc5111667c -r 9e19d0344da5 lisp/textmodes/fill.el --- a/lisp/textmodes/fill.el Fri Nov 02 02:28:50 2001 +0000 +++ b/lisp/textmodes/fill.el Fri Nov 02 03:10:31 2001 +0000 @@ -565,7 +565,9 @@ ;; further fills will assume it ends a sentence. ;; If we now know it does not end a sentence, ;; avoid putting it at the end of the line. - (while (and (> (point) linebeg) (fill-nobreak-p)) + (while (and (> (point) linebeg) + (fill-nobreak-p) + (skip-chars-backward " \t")) (if (re-search-backward " \\|\\c|.\\|.\\c|" linebeg 0) (forward-char 1))) ;; If the left margin and fill prefix by themselves