emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fill-paragraph ill designed


From: Tassilo Horn
Subject: Re: fill-paragraph ill designed
Date: Wed, 26 Aug 2015 19:03:07 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 AquaMail/1.5.9.11 (build: 22000017)

No, I can't point at it. I spoke in the subjunctive, i.e., IMO it would be the right thing to do for fill-region but currently it works differently.


On August 26, 2015 18:46:23 Andreas Röhler <address@hidden> wrote:


Am 26.08.2015 um 14:40 schrieb Tassilo Horn:
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

okay

  and call `fill-paragraph-function' on
them.

Can't see that. May you point me at?

Cheers,

Andreas







reply via email to

[Prev in Thread] Current Thread [Next in Thread]