GNU bug report logs - #78927
[PATCH] Update `fill-region-as-paragraph-semlf' to follow fill.el protocols

Previous Next

Package: emacs;

Reported by: Roi Martin <jroi.martin <at> gmail.com>

Date: Mon, 30 Jun 2025 11:11:01 UTC

Severity: normal

Tags: patch

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Roi Martin <jroi.martin <at> gmail.com>
Cc: 78927 <at> debbugs.gnu.org, monnier <at> iro.umontreal.ca
Subject: Re: bug#78927: [PATCH] Update `fill-region-as-paragraph-semlf' to
 follow fill.el protocols
Date: Mon, 30 Jun 2025 18:50:28 +0300
> Cc: monnier <at> iro.umontreal.ca, eliz <at> gnu.org
> From: Roi Martin <jroi.martin <at> gmail.com>
> Date: Mon, 30 Jun 2025 13:09:57 +0200
> 
> This patch updates the `fill-region-as-paragraph-semlf' function to
> follow the `fill-region-as-paragraph-function' protocol.  This allows to
> delete the `fill-paragraph-semlf' function, which is replaced by
> `fill-paragraph' combined with assigning
> `fill-region-as-paragraph-semlf' to `fill-region-as-paragraph-function'.

fill-paragraph-semlf is a command.  Removing it means that there will
be no way for users to fill a paragraph interactively using semantic
linefeeds.  How much time will pass, do you think, before someone asks
for such a command?

The changes in this patch allow you to make fill-paragraph-semlf a
very thin wrapper around fill-paragraph, but that is still many times
more convenient than asking users to assign obscure values to obscure
variables.

So I suggest to leave the command, just reimplement it using
fill-region-as-paragraph-function.




This bug report was last modified 9 days ago.

Previous Next


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