Sean Whitton <[email protected]> writes:

> Stefan Monnier [01/Jul  8:08am -04] wrote:
>>> You say that it's the responsibility of the caller to make sure the
>>> region is indeed a fillable paragraph but in the case I described it's
>>> two paragraphs.
>>
>> What is a paragraph?  How do you define it?  You seem to presume that
>> there is already some known notion of what is a paragraph, but that's
>> not the case.
>>
>> The moment you pass that region to `fill-region-as-paragraph` you're
>> stating that it is one paragraph.  Regardless of what your human brain
>> looking at this text may think.
>
> Right.  Then we agree (as you said) and I'm not sure what Ihor thinks
> it's meant to mean.

fill-region-as-paragraph is an interactive function.
It is very strange for me that calling it interactively requires the
user to select region within a single paragraph and nothing
else. Especially "regardless what ... human brain looking at this may think".
If Emacs command is counter-intuitive, what kind of command is it?

The fact that fill-region-as-paragraph-semlf explicitly says that is
might be called on multiple paragraphs does not help either.

   (defun fill-region-as-paragraph-semlf (from to &optional justify
                                               nosqueeze squeeze-after)
     "Fill the region using semantic linefeeds as if it were a single paragraph.
   This command removes any paragraph breaks in the region and extra
   newlines at the end, and fills lines within the region.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to