• Samuel Freilich's avatar
    Do not split line before width of fill-prefix · cda26e64
    Samuel Freilich authored
    When auto-filling a paragraph, don't split a line before the width of the
    fill-prefix, creating a subsequent line that is as long or longer (Bug#20774).
    * lisp/simple.el (do-auto-fill): Only consider break-points that are later in
    the line than the width of the fill-prefix.  This is a more general solution
    than the previous logic, which only skipped over the exact fill-prefix.  The
    fill-prefix doesn't necessarily match the prefix of the first line of a
    paragraph in adaptive-fill-mode.
    cda26e64
simple-tests.el 18.2 KB