GNU bug report logs - #79575
31.0.50; fill-paragraph{,-semlf} does not fill paragraph as expected.

Previous Next

Package: emacs;

Reported by: <yfb02119 <at> nifty.com>

Date: Sun, 5 Oct 2025 01:24:02 UTC

Severity: normal

Found in version 31.0.50

To reply to this bug, email your comments to 79575 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#79575; Package emacs. (Sun, 05 Oct 2025 01:24:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to <yfb02119 <at> nifty.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 05 Oct 2025 01:24:02 GMT) Full text and rfc822 format available.

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

From: <yfb02119 <at> nifty.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; fill-paragraph{,-semlf} does not fill paragraph as expected.
Date: Sun, 05 Oct 2025 10:22:43 +0900
Hi,

I encounter two cases that fill-paragraph{,-semlf} does not work as expected.

* case 1.

When I call fill-paragraph-semlf on

あいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえお。
あいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえお。

, the result is

あいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえお
あいうえおあいうえお。あ
いうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあ
いうえおあいうえお。

I expect the last char あ on the second line is located at the beginning
of the next line.  fill-region-as-paragraph-default calls (forward-char
1)) at end, but it does not consider the sentence ends with
sentence-end-without-space?

fill-paragraph works as expected, in this case.


* case 2.

Invoke fill-paragraph-semlf on

abc def.
あいうえお。

, the result is

abc def. あいうえお。

I set sentence-end-double-space to t, then expect two spaces after
def(period).  But there is only one space.
fill-paragraph also does not work as expected.


In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.49, cairo version 1.18.4) of 2025-09-22 built on LAPTOP-89LTAUNV
Repository revision: 616ca006fcb6ae0b9e0c17c74133e7bb3ad68229
Repository branch: master

-- 
TAKAHASHI Yoshio <yfb02119 <at> nifty.com>




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79575; Package emacs. (Sun, 05 Oct 2025 06:09:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: yfb02119 <at> nifty.com, Roi Martin <jroi.martin <at> gmail.com>
Cc: 79575 <at> debbugs.gnu.org
Subject: Re: bug#79575: 31.0.50;
 fill-paragraph{,-semlf} does not fill paragraph as expected.
Date: Sun, 05 Oct 2025 09:08:16 +0300
> From: <yfb02119 <at> nifty.com>
> Date: Sun, 05 Oct 2025 10:22:43 +0900
> 
> Hi,
> 
> I encounter two cases that fill-paragraph{,-semlf} does not work as expected.
> 
> * case 1.
> 
> When I call fill-paragraph-semlf on
> 
> あいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえお。
> あいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえお。
> 
> , the result is
> 
> あいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえお
> あいうえおあいうえお。あ
> いうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあ
> いうえおあいうえお。
> 
> I expect the last char あ on the second line is located at the beginning
> of the next line.  fill-region-as-paragraph-default calls (forward-char
> 1)) at end, but it does not consider the sentence ends with
> sentence-end-without-space?
> 
> fill-paragraph works as expected, in this case.
> 
> 
> * case 2.
> 
> Invoke fill-paragraph-semlf on
> 
> abc def.
> あいうえお。
> 
> , the result is
> 
> abc def. あいうえお。
> 
> I set sentence-end-double-space to t, then expect two spaces after
> def(period).  But there is only one space.
> fill-paragraph also does not work as expected.

Thanks.

Roi, could you please look into these issues?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79575; Package emacs. (Sun, 12 Oct 2025 16:45:01 GMT) Full text and rfc822 format available.

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

From: Roi Martin <jroi.martin <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>, yfb02119 <at> nifty.com
Cc: 79575 <at> debbugs.gnu.org
Subject: Re: bug#79575: 31.0.50; fill-paragraph{,-semlf} does not fill
 paragraph as expected.
Date: Sun, 12 Oct 2025 18:44:43 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> From: <yfb02119 <at> nifty.com>
>> Date: Sun, 05 Oct 2025 10:22:43 +0900
>> 
>> Hi,
>> 
>> I encounter two cases that fill-paragraph{,-semlf} does not work as expected.
>> 
>> * case 1.
>> 
>> When I call fill-paragraph-semlf on
>> 
>> あいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえお。
>> あいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえお。
>> 
>> , the result is
>> 
>> あいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえお
>> あいうえおあいうえお。あ
>> いうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあ
>> いうえおあいうえお。
>> 
>> I expect the last char あ on the second line is located at the beginning
>> of the next line.  fill-region-as-paragraph-default calls (forward-char
>> 1)) at end, but it does not consider the sentence ends with
>> sentence-end-without-space?
>> 
>> fill-paragraph works as expected, in this case.
>> 
>> 
>> * case 2.
>> 
>> Invoke fill-paragraph-semlf on
>> 
>> abc def.
>> あいうえお。
>> 
>> , the result is
>> 
>> abc def. あいうえお。
>> 
>> I set sentence-end-double-space to t, then expect two spaces after
>> def(period).  But there is only one space.
>> fill-paragraph also does not work as expected.
>
> Thanks.
>
> Roi, could you please look into these issues?

Sorry for my late response.

Based on the description of the issue and some preliminary tests, it
seems that these bugs are not in `fill-region-as-paragraph-semlf' or
`fill-paragraph-semlf', but in the filling functions used by those
(e.g. `fill-region-as-paragraph-default').  I'll confirm that this is
the case and I'll try to provide a fix.

        Roi

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79575; Package emacs. (Sat, 25 Oct 2025 10:24:03 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Roi Martin <jroi.martin <at> gmail.com>
Cc: yfb02119 <at> nifty.com, 79575 <at> debbugs.gnu.org
Subject: Re: bug#79575: 31.0.50; fill-paragraph{,-semlf} does not fill
 paragraph as expected.
Date: Sat, 25 Oct 2025 13:23:08 +0300
> From: Roi Martin <jroi.martin <at> gmail.com>
> Cc: 79575 <at> debbugs.gnu.org
> Date: Sun, 12 Oct 2025 18:44:43 +0200
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> From: <yfb02119 <at> nifty.com>
> >> Date: Sun, 05 Oct 2025 10:22:43 +0900
> >> 
> >> Hi,
> >> 
> >> I encounter two cases that fill-paragraph{,-semlf} does not work as expected.
> >> 
> >> * case 1.
> >> 
> >> When I call fill-paragraph-semlf on
> >> 
> >> あいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえお。
> >> あいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえお。
> >> 
> >> , the result is
> >> 
> >> あいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえお
> >> あいうえおあいうえお。あ
> >> いうえおあいうえおあいうえおあいうえおあいうえおあいうえおあいうえおあ
> >> いうえおあいうえお。
> >> 
> >> I expect the last char あ on the second line is located at the beginning
> >> of the next line.  fill-region-as-paragraph-default calls (forward-char
> >> 1)) at end, but it does not consider the sentence ends with
> >> sentence-end-without-space?
> >> 
> >> fill-paragraph works as expected, in this case.
> >> 
> >> 
> >> * case 2.
> >> 
> >> Invoke fill-paragraph-semlf on
> >> 
> >> abc def.
> >> あいうえお。
> >> 
> >> , the result is
> >> 
> >> abc def. あいうえお。
> >> 
> >> I set sentence-end-double-space to t, then expect two spaces after
> >> def(period).  But there is only one space.
> >> fill-paragraph also does not work as expected.
> >
> > Thanks.
> >
> > Roi, could you please look into these issues?
> 
> Sorry for my late response.
> 
> Based on the description of the issue and some preliminary tests, it
> seems that these bugs are not in `fill-region-as-paragraph-semlf' or
> `fill-paragraph-semlf', but in the filling functions used by those
> (e.g. `fill-region-as-paragraph-default').  I'll confirm that this is
> the case and I'll try to provide a fix.

Any progress with this?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79575; Package emacs. (Sun, 26 Oct 2025 15:07:02 GMT) Full text and rfc822 format available.

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

From: Roi Martin <jroi.martin <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: yfb02119 <at> nifty.com, 79575 <at> debbugs.gnu.org
Subject: Re: bug#79575: 31.0.50; fill-paragraph{,-semlf} does not fill
 paragraph as expected.
Date: Sun, 26 Oct 2025 16:06:40 +0100
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Based on the description of the issue and some preliminary tests, it
>> seems that these bugs are not in `fill-region-as-paragraph-semlf' or
>> `fill-paragraph-semlf', but in the filling functions used by those
>> (e.g. `fill-region-as-paragraph-default').  I'll confirm that this is
>> the case and I'll try to provide a fix.
>
> Any progress with this?

Not much.  I expect to work on this next week.

        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.