GNU bug report logs - #78561
[PATCH] Add semantic linefeed support for paragraph filling

Previous Next

Package: emacs;

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

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Juri Linkov <juri <at> linkov.net>
Cc: eliz <at> gnu.org, Roi Martin <jroi.martin <at> gmail.com>, 78561 <at> debbugs.gnu.org
Subject: bug#78561: [PATCH] Add semantic linefeed support for paragraph filling
Date: Mon, 16 Jun 2025 17:29:00 -0400
>   ;; 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.

>> `fill-region-as-paragraph-semlf' is analogous to
>> `fill-region-as-paragraph', so it removes any paragraph breaks in the
>> region and extra newlines at the end, and fills lines within the region.
>
> Then maybe we need another function `fill-region-semlf'.

I expect it would make more sense to introduce
a `fill-region-as-paragraph-function`, so `fill-region` will DTRT after
you set that var to `fill-region-as-paragraph-semlf`.  Instead of having
to reinvent/duplicate the code of `fill-region` in a new
`fill-region-semlf`.


        Stefan





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.