> Cc: [email protected], [email protected],
>  Augusto Stoffel <[email protected]>
> From: Ihor Radchenko <[email protected]>
> Date: Sat, 20 Jun 2026 17:31:47 +0000
> 
> Sean Whitton <[email protected]> writes:
> 
> > Augusto Stoffel [14/May 10:18am +02] wrote:
> >> Not sure this is a bug in Emacs or Org, but I noticed that in org-mode,
> >> if at the very end of a paragraph (looking-at-p "\n\n."), then
> >> unfill-paragraph doesn't do anything.
> >
> > It looks like this is because fill-forward-paragraph behaves
> > unexpectedly in Org mode buffers.  unfill-paragraph expects that calling
> > fill-forward-paragraph when at the very end of a paragraph will move
> > point to between that paragraph and the next, but in your example, point
> > goes one paragraph too far forwards.
> >
> > I.e. this is a bug in org-forward-paragraph, not unfill-paragraph, I
> > think.
> 
> 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?

Reply via email to