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

Previous Next

Package: emacs;

Reported by: Konstantin Kharlamov <Hi-Angel <at> yandex.ru>

Date: Sat, 20 Jan 2024 11:32:02 UTC

Severity: normal

Tags: notabug

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 68607 in the body.
You can then email your comments to 68607 AT debbugs.gnu.org in the normal way.

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#68607; Package emacs. (Sat, 20 Jan 2024 11:32:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Konstantin Kharlamov <Hi-Angel <at> yandex.ru>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 20 Jan 2024 11:32:02 GMT) Full text and rfc822 format available.

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

From: Konstantin Kharlamov <Hi-Angel <at> yandex.ru>
To: bug-gnu-emacs <at> gnu.org
Subject: `fill-column` doesn't always fill paragraph in text-mode
Date: Sat, 20 Jan 2024 14:31:27 +0300
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-linux-gnu, GTK+ Version 3.24.39, cairo version 1.18.0) of 2024-01-18




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#68607; Package emacs. (Sat, 20 Jan 2024 11:58:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Konstantin Kharlamov <Hi-Angel <at> yandex.ru>
Cc: 68607 <at> debbugs.gnu.org
Subject: Re: bug#68607: `fill-column` doesn't always fill paragraph in
 text-mode
Date: Sat, 20 Jan 2024 13:57:21 +0200
tags 68607 notabug
thanks

> From: Konstantin Kharlamov <Hi-Angel <at> yandex.ru>
> 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.




Added tag(s) notabug. Request was from Eli Zaretskii <eliz <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 20 Jan 2024 11:58:02 GMT) Full text and rfc822 format available.

Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Sat, 05 Oct 2024 01:19:02 GMT) Full text and rfc822 format available.

Notification sent to Konstantin Kharlamov <Hi-Angel <at> yandex.ru>:
bug acknowledged by developer. (Sat, 05 Oct 2024 01:19:02 GMT) Full text and rfc822 format available.

Message #15 received at 68607-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 68607-done <at> debbugs.gnu.org, Konstantin Kharlamov <Hi-Angel <at> yandex.ru>
Subject: Re: bug#68607: `fill-column` doesn't always fill paragraph in
 text-mode
Date: Fri, 4 Oct 2024 18:17:39 -0700
Eli Zaretskii <eliz <at> gnu.org> writes:

> tags 68607 notabug
> thanks
>
>> From: Konstantin Kharlamov <Hi-Angel <at> yandex.ru>
>> 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.

I'm therefore closing this bug report.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 02 Nov 2024 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 131 days ago.

Previous Next


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