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
View this message in rfc822 format
Juri Linkov <juri <at> linkov.net> writes:
> Sorry if I missed something, but I tried to use this feature
> and can't find in etc/NEWS whether to set this
One option is setting a key binding, like this:
(keymap-global-set "C-c q" #'fill-paragraph-semlf)
Then you can invoke the command placing the cursor within a paragraph
and using 'C-c q' (or 'M-x fill-paragraph-semlf').
> (setq-local fill-paragraph-function 'fill-paragraph-semlf)
This works. However, the behavior of the usual key binding 'M-q'
depends on the major-mode that is enabled. For instance, `org-mode'
binds 'M-q' to `org-fill-paragraph' and won't invoke
'fill-paragraph-semlf. But placing the cursor within a paragraph a
invoking `fill-paragraph' works. On the flip side, other modes
(e.g. `outline-mode' or `texinfo-mode') don't do that and you can use
'M-q' to invoke `fill-paragraph' and, thus, `fill-paragraph-semlf'
normally.
How to fix this needs further discussion. Eli, Stefan any
recommendation?
Personally, for now, I'm setting a specific key binding to invoke
`fill-paragraph-semlf'.
Roi
This bug report was last modified 19 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.