> From: Ihor Radchenko <[email protected]>
> Cc: [email protected], [email protected], [email protected],
>  [email protected]
> Date: Sat, 20 Jun 2026 19:23:46 +0000
> 
> Eli Zaretskii <[email protected]> writes:
> 
> >> I think it is both.
> >> unfill-paragraph ignores Org mode-specific fill-paragraph-function,
> >> directly calling fill-region. I think it is a bug on Emacs side.
> >
> > No, unfill-paragraph calls fill-forward-paragraph-function.  I guess
> > Org doesn't bind that to its own function?
> 
> Org does bind that to its own function.
> Org also binds fill-paragraph-function to its own function.
> However, unlike fill-paragraph, unfill-paragraph ignores
> major-mode-specific fill-paragraph-function and unconditionally calls a
> generic version.

Sorry, I don't follow.  Do you mean the last part of unfill-paragraph,
viz.:

  (let ((fill-column most-positive-fixnum))
    (fill-region beg end)))

If so, I'm not sure what you expected unfill-paragraph to do here.
There's no fill-region-function AFAIK, only
fill-region-as-paragraph-function.

Reply via email to