GNU bug report logs -
#78561
[PATCH] Add semantic linefeed support for paragraph filling
Previous Next
Reported by: Roi Martin <jroi.martin <at> gmail.com>
Date: Fri, 23 May 2025 09:59:02 UTC
Severity: normal
Tags: patch
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #121 received at 78561 <at> debbugs.gnu.org (full text, mbox):
Juri Linkov <juri <at> linkov.net> writes:
>>> ;; Revert 'M-q' hijacked by org-mode:
>>> (define-key org-mode-map (vector 'remap 'fill-paragraph) nil)
>>
>> Maybe it deserves a bug report? Looking at the code, I can't see a good
>> reason for this hijacking. Maybe it's just a left over from old code.
>
> Cc-ing Ihor for the definite answer, but I suppose 'org-fill-paragraph'
> still exists because it needs the argument 'region', whereas 'fill-paragraph'
> calls 'fill-paragraph-function' only with 'justify', not 'region'.
Yes. More specifically, when region is active, `fill-paragraph'
completely ignores `fill-paragraph-function' and directly calls
`fill-region' -> `fill-region-as-paragraph'. This behavior cannot be
customized by major modes, so Org has to override the whole
`fill-paragraph' to perform syntax-aware filling.
--
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>
This bug report was last modified 18 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.