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>, mbork <at> mbork.pl, rms <at> gnu.org, 78561 <at> debbugs.gnu.org
Subject: bug#78561: [PATCH] Add semantic linefeed support for paragraph filling
Date: Tue, 03 Jun 2025 08:45:17 +0200
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> 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.

The latest version is far from perfect but works well for the most
common use cases.  The included tests can given you an idea of the
current state.  Are you OK with tackling the `with-restriction'
improvement in a future patch?


        Roi




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.