GNU bug report logs - #68607
`fill-column` doesn't always fill paragraph in text-mode

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Konstantin Kharlamov <Hi-Angel@HIDDEN>; Keywords: notabug; dated Sat, 20 Jan 2024 11:32:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Added tag(s) notabug. Request was from Eli Zaretskii <eliz@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 68607 <at> debbugs.gnu.org:


Received: (at 68607) by debbugs.gnu.org; 20 Jan 2024 11:57:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 20 06:57:54 2024
Received: from localhost ([127.0.0.1]:33070 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rR9yz-0005B8-P4
	for submit <at> debbugs.gnu.org; Sat, 20 Jan 2024 06:57:54 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:34684)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>)
 id 1rR9yx-0005As-01; Sat, 20 Jan 2024 06:57:51 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1rR9yo-0001zg-R0; Sat, 20 Jan 2024 06:57:42 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=v25FAb43/1QSonbHAVzmvUBBibNZKYms685/s5N7htY=; b=jV3fi2tMazFQ
 NdRMfm8BR84qkuAcbweZKi9chiJJR897YJ/qj0dwyz2NWrl1K71857zb9RDLwuGcinlkf4W/+DMLH
 6FT1pGK0KCQSZRCoz8KsOd8bCVEQQe89zUwh7MIAmnesuBEQA2vwERej8sRnFRgjH9onqDHpbO53u
 gOOesnAAeX94+CtG+YQupB6wTMSpBIAdk3DC8owglSXDYbgkj7fGGwLGSaYC/fv4hjfGIaCA4JhVn
 GPdju17db7k7jgzJ0HtKR9J2mQkZyh3ZDJNR4VLM85goEXqr2BAaQDH/mK134cy2A/axhJopeoG6b
 Ig8s15DYzjXjQXOgu2unvg==;
Date: Sat, 20 Jan 2024 13:57:21 +0200
Message-Id: <8334ustdy6.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Konstantin Kharlamov <Hi-Angel@HIDDEN>
In-Reply-To: <6af05736012799df255476eb0e6b6a9a99e61732.camel@HIDDEN>
 (message from Konstantin Kharlamov on Sat, 20 Jan 2024 14:31:27 +0300)
Subject: Re: bug#68607: `fill-column` doesn't always fill paragraph in
 text-mode
References: <6af05736012799df255476eb0e6b6a9a99e61732.camel@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68607
Cc: 68607 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

tags 68607 notabug
thanks

> From: Konstantin Kharlamov <Hi-Angel@HIDDEN>
> Date: Sat, 20 Jan 2024 14:31:27 +0300
> 
> 1. Create a `1.txt` file with the following text:
> 
> It is now possible to pass a directory of a local repository as URL
> inside 'treesit-language-source-alist', so that calling
> 'treesit-install-language-grammar' would avoid cloning the
> repository. It may be useful for example for the purposes of bisecting
> a treesitter grammar.
> 
> 2. Open it with `emacs -Q 1.txt`
> 3. Evaluate (setq fill-column 71)
> 4. Put a caret over the paragraph and press M-q (alternatively execute M-x
>    fill-paragraph)
> 
> ## Expected
> 
> Lines 3 and 4 will change such that the word `repository` gets moved to the 3rd line.
> 
> ## Actual
> 
> Nothing happens

You leave only 1 space between sentences, but didn't customize
sentence-end-double-space to nil to match your style.

This is a cockpit error, Emacs works as intended.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#68607; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 20 Jan 2024 11:31:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Jan 20 06:31:47 2024
Received: from localhost ([127.0.0.1]:33036 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rR9Zj-0001H2-BK
	for submit <at> debbugs.gnu.org; Sat, 20 Jan 2024 06:31:47 -0500
Received: from lists.gnu.org ([2001:470:142::17]:58664)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <Hi-Angel@HIDDEN>) id 1rR9Zi-0001BK-1P
 for submit <at> debbugs.gnu.org; Sat, 20 Jan 2024 06:31:46 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Hi-Angel@HIDDEN>)
 id 1rR9ZZ-0003fg-Rl
 for bug-gnu-emacs@HIDDEN; Sat, 20 Jan 2024 06:31:37 -0500
Received: from forward101c.mail.yandex.net ([2a02:6b8:c03:500:1:45:d181:d101])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Hi-Angel@HIDDEN>)
 id 1rR9ZW-0007wq-G5
 for bug-gnu-emacs@HIDDEN; Sat, 20 Jan 2024 06:31:37 -0500
Received: from mail-nwsmtp-smtp-production-main-91.sas.yp-c.yandex.net
 (mail-nwsmtp-smtp-production-main-91.sas.yp-c.yandex.net
 [IPv6:2a02:6b8:c08:47a7:0:640:b27a:0])
 by forward101c.mail.yandex.net (Yandex) with ESMTP id F33E160A80
 for <bug-gnu-emacs@HIDDEN>; Sat, 20 Jan 2024 14:31:27 +0300 (MSK)
Received: by mail-nwsmtp-smtp-production-main-91.sas.yp-c.yandex.net
 (smtp/Yandex) with ESMTPSA id RVNrSHAi3mI0-EExW9fye; 
 Sat, 20 Jan 2024 14:31:27 +0300
X-Yandex-Fwd: 1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
 t=1705750287; bh=i3xlaVr0WncZGBZJNsWLujdUkaJX9heOng2myN628+U=;
 h=To:Message-ID:Subject:Date:From;
 b=jK+//trFiBJfotySN3gD/GaJORncNpyMlQIajjef4G7VNVvPgA2F6AhA2oBzI6hPX
 aSbA6M+OtWEzkA+Ttr1krq5F2wBYWOa/MGpc2L567Sf0y9faWC9GIjq9muDc4Er4Nl
 aKBIYiLx4yLQVj0OZyxg+wcN1eRM2oNdVCZpVVlg=
Authentication-Results: mail-nwsmtp-smtp-production-main-91.sas.yp-c.yandex.net;
 dkim=pass header.i=@yandex.ru
Message-ID: <6af05736012799df255476eb0e6b6a9a99e61732.camel@HIDDEN>
Subject: `fill-column` doesn't always fill paragraph in text-mode
From: Konstantin Kharlamov <Hi-Angel@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Date: Sat, 20 Jan 2024 14:31:27 +0300
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
User-Agent: Evolution 3.50.3 
MIME-Version: 1.0
Received-SPF: pass client-ip=2a02:6b8:c03:500:1:45:d181:d101;
 envelope-from=Hi-Angel@HIDDEN; helo=forward101c.mail.yandex.net
X-Spam_score_int: -27
X-Spam_score: -2.8
X-Spam_bar: --
X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
 T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

I saw that behavior in different circumstances many times, but this
time I noticed it while working on the NEWS entry as part of #68579 and
it's an easy testcase, so I decided to report.

# Steps to reproduce

1. Create a `1.txt` file with the following text:

It is now possible to pass a directory of a local repository as URL
inside 'treesit-language-source-alist', so that calling
'treesit-install-language-grammar' would avoid cloning the
repository. It may be useful for example for the purposes of bisecting
a treesitter grammar.

2. Open it with `emacs -Q 1.txt`
3. Evaluate (setq fill-column 71)
4. Put a caret over the paragraph and press M-q (alternatively execute M-x
   fill-paragraph)

## Expected

Lines 3 and 4 will change such that the word `repository` gets moved to the=
 3rd line.

## Actual

Nothing happens

# Version

Emacs build from git 2 days ago: GNU Emacs 30.0.50 (build 1, x86_64-pc-linu=
x-gnu, GTK+ Version 3.24.39, cairo version 1.18.0) of 2024-01-18




Acknowledgement sent to Konstantin Kharlamov <Hi-Angel@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#68607; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 20 Jan 2024 12:30:02 UTC

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