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>

Full log


Message #47 received at 78561 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Roi Martin <jroi.martin <at> gmail.com>
Cc: Eli Zaretskii <eliz <at> gnu.org>, mbork <at> mbork.pl, rms <at> gnu.org,
 78561 <at> debbugs.gnu.org
Subject: Re: bug#78561: [PATCH] Add semantic linefeed support for paragraph
 filling
Date: Mon, 02 Jun 2025 15:13:05 -0400
> RMS replied to me with a review, where he mentioned that this feature
> would be more convenient if it were a minor mode.  Eli, Stefan, what do
> you think?  If it makes sense, we can add it in a future patch.

Yes, it goes in the same direction of my TODO of adding more hooks to
control various aspects of filling.  (One of) Those hooks should make it
easy to write such a minor mode.

> I've attached a new version of the patch.  It includes the following
> changes compared to the previous version:

LGTM.

Side comment, tho: it would be good to get rid of the `with-restriction`
so that the code can see the surrounding text.  In the past such
restrictions in `fill.el` have posed problems for example when we want
to refill code in a way that obeys indentation rules or that
needs to distinguish filling within strings vs filling within comments.


        Stefan





This bug report was last modified today.

Previous Next


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