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

Full log


View this message in rfc822 format

From: Roi Martin <jroi.martin <at> gmail.com>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Eli Zaretskii <eliz <at> gnu.org>, Marcin Borkowski <mbork <at> mbork.pl>, 78561 <at> debbugs.gnu.org
Subject: bug#78561: [PATCH] Add semantic linefeed support for paragraph filling
Date: Wed, 28 May 2025 17:44:02 +0200
[Message part 1 (text/plain, inline)]
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> I recommend you first finish the current patch and take on that
> plan afterwards.
> What I'm asking is a fairly small refactoring of the code you sent,
> I think.

Please, find attached a new version of the patch.

It contains the following changes:

- Add a new function named `fill-region-as-paragraph-semlf', which fills
  a region using semantic linefeeds as if it were a single paragraph.
  Its behavior is analogous to `fill-region-as-paragraph'.
- Update the `fill-paragraph-semlf' function to use
  `fill-region-as-paragraph-semlf' internally.
- Remove the mention about using `fill-paragraph-semlf' as
  `fill-paragraph-function' from docs, given that the long term plan is
  to obsolete this.
- Add test for `fill-region-as-paragraph-semlf'.

Thanks a lot for all the explanations.  I hope this new version is
closer to what you had in mind.

        Roi

[0001-Add-semantic-linefeed-support-for-paragraph-filling.patch (text/x-patch, attachment)]

This bug report was last modified 10 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.