Andreas Röhler <address@hidden> writes:
There is a lot of ugliness in the way fill-paragraph works, but
developing a replacement that works ok in practice is harder than it
looks. I recall a time that we tried.
What would prevent switching the clauses as suggested?
IMO, it makes completely sense that `fill-paragraph' delegates to
`fill-region' if the region is active so that not every mode-specific
`fill-paragraph-function' has to do that on its own.
Let's assume region is up to or inside a documentation-string in
Python.
Then fill-region will be called instead of fill-paragraph-function.
But how should fill-region get access or know about Python docu-string
styles?
`fill-region' would utilize `fill-forward-paragraph-function' to move
over the paragraphs in that region