GNU bug report logs - #56796
29.0.50; Hard newlines not respected in code comments?

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; Severity: wishlist; Reported by: Visuwesh <visuweshm@HIDDEN>; dated Wed, 27 Jul 2022 15:50:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Severity set to 'wishlist' from 'normal' Request was from Stefan Kangas <stefan@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 56796) by debbugs.gnu.org; 29 Jul 2022 16:16:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 29 12:16:49 2022
Received: from localhost ([127.0.0.1]:33334 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oHSfI-0002hR-Qw
	for submit <at> debbugs.gnu.org; Fri, 29 Jul 2022 12:16:49 -0400
Received: from mail-pg1-f194.google.com ([209.85.215.194]:45938)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <visuweshm@HIDDEN>) id 1oHSfB-0002gq-Cw
 for 56796 <at> debbugs.gnu.org; Fri, 29 Jul 2022 12:16:37 -0400
Received: by mail-pg1-f194.google.com with SMTP id f65so4356577pgc.12
 for <56796 <at> debbugs.gnu.org>; Fri, 29 Jul 2022 09:16:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc;
 bh=cjmfhnP3k/YlTAZVGiOWA1SaPtp6FyZLjyVkeYBEFVk=;
 b=U7q+Wi5FkRghIwN7pIi1Sa/Q9KXn+r8Jgkdv5pnMMAnJd26pInS4y3nFi4ajvMlhPa
 f8NranAGaJRm9f2reZWHKgBs/2jmp3HJmC4uGT7sLGk6b0ORaT7qkXjn2OnTzZHjbQsw
 +S+yKbL9/qX36AMo4pJ/LDlw9GYFT5dPUUoGEOxRAJtb3q8wEZQ5X1jGjcKB27lX+8qf
 Ur+uahVdml+usd9Fa4+Vk9ncolMEXps81pzpJpDS5X5Kdwb3jbB514891jLeLlLftX+q
 7bbpnTyxT7mDV8rSJ7gUmF6YEaqDnJnhkEjrjvwEOyZJXG5WH7rl9dhE/UbXITcM0QIn
 pLhw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc;
 bh=cjmfhnP3k/YlTAZVGiOWA1SaPtp6FyZLjyVkeYBEFVk=;
 b=i8+CUZzFrWM5pga2ZnjH6DZtGlL/DyW/9wS4XAdYXmUIYrcCCodllbZou3u2sMgz1/
 DKe6YDh9adCBLCWOhcYy363zzqqi4threYYmofuHEbAyLb4Ddc87/1yj4AoEOEO70pug
 bd4SWirMiOxKZ/G8nvOaKH+xSColfw8pZ2Uzs2NFm2qKpsmrDQT0aiY6f/0YaapBVukV
 J1K+WzMbJ2tZIVY7pY/EdwIhWYGTNQhrr1vPMkXzAtkiaJ5aSHi2cE1RZdgh5l2n+/q/
 0Ffx/4hRSgQXJCDdBO5L10GFzPc0goDqL6t2gQ8D3T9mRq6H8FLK6IfEpgkZadEOv9aW
 mktg==
X-Gm-Message-State: AJIora8HQ0sGg4l7q728on8PaYCJKt+XpiJoBfSwYXsyaV7GxKEWknMU
 YxXbaSFlH39VVOfMVy75WCo=
X-Google-Smtp-Source: AGRyM1t25SYFutVfW6oqnGl/Uv90sMJT5J03XeU5gVYNwSAcUFw3xV+2SE/0acFZicAS81kIL6WGug==
X-Received: by 2002:a63:8542:0:b0:415:3194:cc76 with SMTP id
 u63-20020a638542000000b004153194cc76mr3542644pgd.431.1659111387557; 
 Fri, 29 Jul 2022 09:16:27 -0700 (PDT)
Received: from localhost ([49.204.115.236]) by smtp.gmail.com with ESMTPSA id
 s4-20020aa78bc4000000b00528ce53a4a6sm3033506pfd.196.2022.07.29.09.16.25
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 29 Jul 2022 09:16:26 -0700 (PDT)
From: Visuwesh <visuweshm@HIDDEN>
To: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of
 text editors" <bug-gnu-emacs@HIDDEN>
Subject: Re: bug#56796: 29.0.50; Hard newlines not respected in code comments?
In-Reply-To: <jwv8roc7wtp.fsf-monnier+emacs@HIDDEN> (Stefan Monnier via's
 message of "Fri, 29 Jul 2022 11:41:26 -0400")
References: <8735ema73q.fsf@HIDDEN> <83k07xaea1.fsf@HIDDEN>
 <jwv1qu49eop.fsf-monnier+emacs@HIDDEN> <87fsikynn1.fsf@HIDDEN>
 <87bkt8ynbh.fsf@HIDDEN> <jwv8roc7wtp.fsf-monnier+emacs@HIDDEN>
Date: Fri, 29 Jul 2022 21:46:16 +0530
Message-ID: <874jyzzygf.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 56796
Cc: eliz@HIDDEN, Stefan Monnier <monnier@HIDDEN>,
 56796 <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: -1.0 (-)

[=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=9C=E0=AF=82=
=E0=AE=B2=E0=AF=88 29, 2022] Stefan Monnier via "Bug reports for GNU Emacs,=
 the Swiss army knife of text editors" wrote:

>> More generally: I'm not sure how common this pattern is but I tend to do
>>
>>     ;; TODO/FIXME: Something...
>>     ;; Ideas and thoughts on how to clear it here.
>>
>> Now if you do M-q there, your neatly arranged text is destroyed.  (I am
>> probably biased) I also catch this pattern in the Emacs source tree as
>> well.
>
> It never occurred to me to use hard newlines for such cases.  What I use
> instead is either:
> - add extra newlines to mark the paragraph boundaries to use
>   (that's just as easy as adding hard newlines, but requires removing
>   those extra newlines afterward).

This is what I did but frankly I am really tired of this pattern since
when you go back to revise the text, you have to do the thing yet again.
(Granted, you only avoid this when you haven't killed the buffer or
Emacs but we don't do that here, do we?  ;-)

> - Select the intended paragraph rather than rely on M-q's automatic
>   decision of what's a paragraph.

I always forget that M-q takes an active region, this is a viable option
as well.  I think the first option is quicker though.

> Hard newlines are a good idea, for this use-case, indeed, tho it would
> be even better if we could somehow represent that info in the text
> itself so it's properly saved into the file.

You're not the first one: https://yhetil.org/emacs-devel/CAArVCkQHmwqHvcOEu=
rBYLcWS74nov8OAH4fnX8XbUr2JY2nCKA@HIDDEN/

[=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=9C=E0=AF=82=
=E0=AE=B2=E0=AF=88 29, 2022] Stefan Monnier via "Bug reports for GNU Emacs,=
 the Swiss army knife of text editors" wrote:

>> But maybe me using hard newlines to tame adaptive-fill-mode is the wrong
>> approach: I would like to write lists such as
>>
>>     . blah blah blah
>>     . blah blah blah
>
> I'm not sure "." should be accepted by default, but...

Indeed, it's a bit too "out there" if you know what I mean.

>> I can't blame adaptive-fill-mode for it: it can only be ever so smart
>> and hard newlines seemed like the solution for "when I say newline, I
>> MEAN IT".
>
> I do think it's worth a bug report, because we should handle at least
> some "common" cases of itemized lists in ELisp comments, and AFAIK we
> currently don't handle any at all.

When I was searching for discussions on adaptive-fill-mode in
emacs-devel to make sense of it, I found the past you agreeing with me
in the wild.  The discussion can be found here: https://yhetil.org/emacs-de=
vel/jwvk5wvx5jv.fsf-monnier+emacs@HIDDEN/
but I'm not sure what happened afterwards.  Hmm... but now that I
re-read it, it is not the same problem but it is a problem that
often bites me in the back.




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

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


Received: (at submit) by debbugs.gnu.org; 29 Jul 2022 16:16:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 29 12:16:35 2022
Received: from localhost ([127.0.0.1]:33332 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oHSfD-0002hA-Ck
	for submit <at> debbugs.gnu.org; Fri, 29 Jul 2022 12:16:35 -0400
Received: from lists.gnu.org ([209.51.188.17]:45680)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <visuweshm@HIDDEN>) id 1oHSfB-0002gz-JO
 for submit <at> debbugs.gnu.org; Fri, 29 Jul 2022 12:16:34 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:57834)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <visuweshm@HIDDEN>)
 id 1oHSfB-0004il-F3
 for bug-gnu-emacs@HIDDEN; Fri, 29 Jul 2022 12:16:33 -0400
Received: from mail-pg1-x542.google.com ([2607:f8b0:4864:20::542]:42734)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <visuweshm@HIDDEN>)
 id 1oHSf8-0005LW-G2; Fri, 29 Jul 2022 12:16:32 -0400
Received: by mail-pg1-x542.google.com with SMTP id l193so3974614pge.9;
 Fri, 29 Jul 2022 09:16:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc;
 bh=cjmfhnP3k/YlTAZVGiOWA1SaPtp6FyZLjyVkeYBEFVk=;
 b=U7q+Wi5FkRghIwN7pIi1Sa/Q9KXn+r8Jgkdv5pnMMAnJd26pInS4y3nFi4ajvMlhPa
 f8NranAGaJRm9f2reZWHKgBs/2jmp3HJmC4uGT7sLGk6b0ORaT7qkXjn2OnTzZHjbQsw
 +S+yKbL9/qX36AMo4pJ/LDlw9GYFT5dPUUoGEOxRAJtb3q8wEZQ5X1jGjcKB27lX+8qf
 Ur+uahVdml+usd9Fa4+Vk9ncolMEXps81pzpJpDS5X5Kdwb3jbB514891jLeLlLftX+q
 7bbpnTyxT7mDV8rSJ7gUmF6YEaqDnJnhkEjrjvwEOyZJXG5WH7rl9dhE/UbXITcM0QIn
 pLhw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc;
 bh=cjmfhnP3k/YlTAZVGiOWA1SaPtp6FyZLjyVkeYBEFVk=;
 b=qFxPL5EYSydYgDskzs4wPCsP38Mkp29+uvE5VqNOXoQN8LpuB34i1LiZqM4Cyb7suN
 Y0jpL8Kqz5SwCp+uqFr6kBX5BOSE+LfghB261oNMWSGykMZnKyRHnzi93hzZJpsdatPp
 iQQ7DcyMnZK9ArhbkcEIr+BG2mPubjNWewHk6N8mD8zsHg/SvBjwyV56ziNsh3gNkYat
 ZzbWrjH4x4AlgmPOR9VPujvl1TPb8jHJ1fWxEfmRz2D1eXt6vlt+/BRxZrdjwEnmMf4L
 hDKSUtDhzOigBMgv7GWYriJfoZTm+Ec+nsH5TpZJ5wOcYsAsfl54hZiozV5M3/FycEy9
 dn5w==
X-Gm-Message-State: AJIora+uyskQWYq8TxOdE94juZYNC4jAN/7Sg3sFuJzqSob3N6JNcuzR
 1y/TFMPs6yCwoQBFUIwOykncvThy54k=
X-Google-Smtp-Source: AGRyM1t25SYFutVfW6oqnGl/Uv90sMJT5J03XeU5gVYNwSAcUFw3xV+2SE/0acFZicAS81kIL6WGug==
X-Received: by 2002:a63:8542:0:b0:415:3194:cc76 with SMTP id
 u63-20020a638542000000b004153194cc76mr3542644pgd.431.1659111387557; 
 Fri, 29 Jul 2022 09:16:27 -0700 (PDT)
Received: from localhost ([49.204.115.236]) by smtp.gmail.com with ESMTPSA id
 s4-20020aa78bc4000000b00528ce53a4a6sm3033506pfd.196.2022.07.29.09.16.25
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 29 Jul 2022 09:16:26 -0700 (PDT)
From: Visuwesh <visuweshm@HIDDEN>
To: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of
 text editors" <bug-gnu-emacs@HIDDEN>
Subject: Re: bug#56796: 29.0.50; Hard newlines not respected in code comments?
In-Reply-To: <jwv8roc7wtp.fsf-monnier+emacs@HIDDEN> (Stefan Monnier via's
 message of "Fri, 29 Jul 2022 11:41:26 -0400")
References: <8735ema73q.fsf@HIDDEN> <83k07xaea1.fsf@HIDDEN>
 <jwv1qu49eop.fsf-monnier+emacs@HIDDEN> <87fsikynn1.fsf@HIDDEN>
 <87bkt8ynbh.fsf@HIDDEN> <jwv8roc7wtp.fsf-monnier+emacs@HIDDEN>
Date: Fri, 29 Jul 2022 21:46:16 +0530
Message-ID: <874jyzzygf.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2607:f8b0:4864:20::542;
 envelope-from=visuweshm@HIDDEN; helo=mail-pg1-x542.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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.3 (-)
X-Debbugs-Envelope-To: submit
Cc: eliz@HIDDEN, Stefan Monnier <monnier@HIDDEN>,
 56796 <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: -2.3 (--)

[=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=9C=E0=AF=82=
=E0=AE=B2=E0=AF=88 29, 2022] Stefan Monnier via "Bug reports for GNU Emacs,=
 the Swiss army knife of text editors" wrote:

>> More generally: I'm not sure how common this pattern is but I tend to do
>>
>>     ;; TODO/FIXME: Something...
>>     ;; Ideas and thoughts on how to clear it here.
>>
>> Now if you do M-q there, your neatly arranged text is destroyed.  (I am
>> probably biased) I also catch this pattern in the Emacs source tree as
>> well.
>
> It never occurred to me to use hard newlines for such cases.  What I use
> instead is either:
> - add extra newlines to mark the paragraph boundaries to use
>   (that's just as easy as adding hard newlines, but requires removing
>   those extra newlines afterward).

This is what I did but frankly I am really tired of this pattern since
when you go back to revise the text, you have to do the thing yet again.
(Granted, you only avoid this when you haven't killed the buffer or
Emacs but we don't do that here, do we?  ;-)

> - Select the intended paragraph rather than rely on M-q's automatic
>   decision of what's a paragraph.

I always forget that M-q takes an active region, this is a viable option
as well.  I think the first option is quicker though.

> Hard newlines are a good idea, for this use-case, indeed, tho it would
> be even better if we could somehow represent that info in the text
> itself so it's properly saved into the file.

You're not the first one: https://yhetil.org/emacs-devel/CAArVCkQHmwqHvcOEu=
rBYLcWS74nov8OAH4fnX8XbUr2JY2nCKA@HIDDEN/

[=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=9C=E0=AF=82=
=E0=AE=B2=E0=AF=88 29, 2022] Stefan Monnier via "Bug reports for GNU Emacs,=
 the Swiss army knife of text editors" wrote:

>> But maybe me using hard newlines to tame adaptive-fill-mode is the wrong
>> approach: I would like to write lists such as
>>
>>     . blah blah blah
>>     . blah blah blah
>
> I'm not sure "." should be accepted by default, but...

Indeed, it's a bit too "out there" if you know what I mean.

>> I can't blame adaptive-fill-mode for it: it can only be ever so smart
>> and hard newlines seemed like the solution for "when I say newline, I
>> MEAN IT".
>
> I do think it's worth a bug report, because we should handle at least
> some "common" cases of itemized lists in ELisp comments, and AFAIK we
> currently don't handle any at all.

When I was searching for discussions on adaptive-fill-mode in
emacs-devel to make sense of it, I found the past you agreeing with me
in the wild.  The discussion can be found here: https://yhetil.org/emacs-de=
vel/jwvk5wvx5jv.fsf-monnier+emacs@HIDDEN/
but I'm not sure what happened afterwards.  Hmm... but now that I
re-read it, it is not the same problem but it is a problem that
often bites me in the back.




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

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


Received: (at 56796) by debbugs.gnu.org; 29 Jul 2022 15:47:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 29 11:47:24 2022
Received: from localhost ([127.0.0.1]:33293 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oHSCy-0001sF-DR
	for submit <at> debbugs.gnu.org; Fri, 29 Jul 2022 11:47:24 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:29843)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1oHSCt-0001rj-MC
 for 56796 <at> debbugs.gnu.org; Fri, 29 Jul 2022 11:47:20 -0400
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 4383A100189;
 Fri, 29 Jul 2022 11:47:14 -0400 (EDT)
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id EB7A0100102;
 Fri, 29 Jul 2022 11:47:12 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1659109632;
 bh=xjAtfMAleQym8lgqMxNCEw1OmqHTPAyiZXv3SnTcitI=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=pZkFvmn94OjdxnR1C75RflTLslTUPZTDdpXY4bLvuGm1WFrhUcgODaZLG9wBJolF2
 RDsPR1dz2b5VkL5dUXE4a6uHWdo/0RdaS1XFE8VLJ6QoLVxK9Wcvdb7z8GtMrkYoIC
 D4plDLutV7MKM1euQ2YPQxxesF/HyGMAgcArhshuZG8Y/bJqbEGDBnn2r8VkAOsVLQ
 VE5XPmHBLgySw5U2t5Kcp7ZqY2S4aTlUgKPICdPTETIUSvOj9adtlYjKLNKiVhAgk7
 pdnEWwDoSojXFRr1/Vg9wFiik3OgWQFyXFWUvOsHujMVVtoh6dFHNmJAgeceVrxV6b
 9JeZTzmZfWkkQ==
Received: from milanesa (dyn.144-85-172-183.dsl.vtx.ch [144.85.172.183])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 123E51203F3;
 Fri, 29 Jul 2022 11:47:11 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Visuwesh <visuweshm@HIDDEN>
Subject: Re: bug#56796: 29.0.50; Hard newlines not respected in code comments?
In-Reply-To: <87fsikynn1.fsf@HIDDEN> (Visuwesh's message of "Fri, 29 Jul
 2022 20:25:14 +0530")
Message-ID: <jwv35ek7wnu.fsf-monnier+emacs@HIDDEN>
References: <8735ema73q.fsf@HIDDEN> <83k07xaea1.fsf@HIDDEN>
 <jwv1qu49eop.fsf-monnier+emacs@HIDDEN> <87fsikynn1.fsf@HIDDEN>
Date: Fri, 29 Jul 2022 11:47:09 -0400
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL -0.015 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 56796
Cc: "Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of
 text editors" <bug-gnu-emacs@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>,
 56796 <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 (---)

> More generally: I'm not sure how common this pattern is but I tend to do
>
>     ;; TODO/FIXME: Something...
>     ;; Ideas and thoughts on how to clear it here.
>
> Now if you do M-q there, your neatly arranged text is destroyed.  (I am
> probably biased) I also catch this pattern in the Emacs source tree as
> well.

It never occurred to me to use hard newlines for such cases.  What I use
instead is either:
- add extra newlines to mark the paragraph boundaries to use
  (that's just as easy as adding hard newlines, but requires removing
  those extra newlines afterward).
- Select the intended paragraph rather than rely on M-q's automatic
  decision of what's a paragraph.

Hard newlines are a good idea, for this use-case, indeed, tho it would
be even better if we could somehow represent that info in the text
itself so it's properly saved into the file.


        Stefan





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

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


Received: (at submit) by debbugs.gnu.org; 29 Jul 2022 15:47:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 29 11:47:21 2022
Received: from localhost ([127.0.0.1]:33291 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oHSCv-0001s5-1L
	for submit <at> debbugs.gnu.org; Fri, 29 Jul 2022 11:47:21 -0400
Received: from lists.gnu.org ([209.51.188.17]:40844)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1oHSCs-0001ro-1X
 for submit <at> debbugs.gnu.org; Fri, 29 Jul 2022 11:47:19 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51024)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <monnier@HIDDEN>)
 id 1oHSCr-0005oe-Rd
 for bug-gnu-emacs@HIDDEN; Fri, 29 Jul 2022 11:47:17 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:18383)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <monnier@HIDDEN>)
 id 1oHSCp-0007RX-OH; Fri, 29 Jul 2022 11:47:17 -0400
Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 4383A100189;
 Fri, 29 Jul 2022 11:47:14 -0400 (EDT)
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id EB7A0100102;
 Fri, 29 Jul 2022 11:47:12 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1659109632;
 bh=xjAtfMAleQym8lgqMxNCEw1OmqHTPAyiZXv3SnTcitI=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=pZkFvmn94OjdxnR1C75RflTLslTUPZTDdpXY4bLvuGm1WFrhUcgODaZLG9wBJolF2
 RDsPR1dz2b5VkL5dUXE4a6uHWdo/0RdaS1XFE8VLJ6QoLVxK9Wcvdb7z8GtMrkYoIC
 D4plDLutV7MKM1euQ2YPQxxesF/HyGMAgcArhshuZG8Y/bJqbEGDBnn2r8VkAOsVLQ
 VE5XPmHBLgySw5U2t5Kcp7ZqY2S4aTlUgKPICdPTETIUSvOj9adtlYjKLNKiVhAgk7
 pdnEWwDoSojXFRr1/Vg9wFiik3OgWQFyXFWUvOsHujMVVtoh6dFHNmJAgeceVrxV6b
 9JeZTzmZfWkkQ==
Received: from milanesa (dyn.144-85-172-183.dsl.vtx.ch [144.85.172.183])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 123E51203F3;
 Fri, 29 Jul 2022 11:47:11 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Visuwesh <visuweshm@HIDDEN>
Subject: Re: bug#56796: 29.0.50; Hard newlines not respected in code comments?
In-Reply-To: <87fsikynn1.fsf@HIDDEN> (Visuwesh's message of "Fri, 29 Jul
 2022 20:25:14 +0530")
Message-ID: <jwv35ek7wnu.fsf-monnier+emacs@HIDDEN>
References: <8735ema73q.fsf@HIDDEN> <83k07xaea1.fsf@HIDDEN>
 <jwv1qu49eop.fsf-monnier+emacs@HIDDEN> <87fsikynn1.fsf@HIDDEN>
Date: Fri, 29 Jul 2022 11:47:09 -0400
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL -0.015 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
X-SPAM-LEVEL: 
Received-SPF: pass client-ip=132.204.25.50;
 envelope-from=monnier@HIDDEN; helo=mailscanner.iro.umontreal.ca
X-Spam_score_int: -42
X-Spam_score: -4.3
X-Spam_bar: ----
X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3,
 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.3 (-)
X-Debbugs-Envelope-To: submit
Cc: "Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of
 text editors" <bug-gnu-emacs@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>,
 56796 <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: -2.3 (--)

> More generally: I'm not sure how common this pattern is but I tend to do
>
>     ;; TODO/FIXME: Something...
>     ;; Ideas and thoughts on how to clear it here.
>
> Now if you do M-q there, your neatly arranged text is destroyed.  (I am
> probably biased) I also catch this pattern in the Emacs source tree as
> well.

It never occurred to me to use hard newlines for such cases.  What I use
instead is either:
- add extra newlines to mark the paragraph boundaries to use
  (that's just as easy as adding hard newlines, but requires removing
  those extra newlines afterward).
- Select the intended paragraph rather than rely on M-q's automatic
  decision of what's a paragraph.

Hard newlines are a good idea, for this use-case, indeed, tho it would
be even better if we could somehow represent that info in the text
itself so it's properly saved into the file.


        Stefan





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

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


Received: (at 56796) by debbugs.gnu.org; 29 Jul 2022 15:41:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 29 11:41:42 2022
Received: from localhost ([127.0.0.1]:33267 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oHS7S-0001hR-4c
	for submit <at> debbugs.gnu.org; Fri, 29 Jul 2022 11:41:42 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:42527)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1oHS7M-0001h6-Gw
 for 56796 <at> debbugs.gnu.org; Fri, 29 Jul 2022 11:41:40 -0400
Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id DE92944161E;
 Fri, 29 Jul 2022 11:41:30 -0400 (EDT)
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 69AED4412EC;
 Fri, 29 Jul 2022 11:41:29 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1659109289;
 bh=8hALZ3Gd07+wszX5fR4zJYit4ZSFc2f9hYEYhhtR/+s=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=lUNkqHRM+t/nnTE1nmibnPoewgn1fop6CVQbjlt534mLgYL0d1oKMkZvpiczl+as9
 RPU8YXnnif0KmJzNR5p8j29KvaDI+EpDKKLXQKv+kIdI5kRl/CPWLPqWYJYQ8x51r7
 y//rSqWEvIAQBOxnb5D+tln1cJb5hdnEFL3ramG5GuB5GlIqArUG9BVu4KuuuxQuLB
 wf3eHLzmaKNvawbXf0PsZpbmaPx438uvyPNktqSRrOzkZxkCBfKyTKS1tUkfd+sbM9
 Ir09ptqsCQOuxcXsfoci8TLGH85iVcf0Ik4BnVFphBsm7dIaZjtuzB6T5OYDPqO3af
 7HT2aOA6Xzo9g==
Received: from milanesa (dyn.144-85-172-183.dsl.vtx.ch [144.85.172.183])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 9FF1412047D;
 Fri, 29 Jul 2022 11:41:28 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Visuwesh <visuweshm@HIDDEN>
Subject: Re: bug#56796: 29.0.50; Hard newlines not respected in code comments?
In-Reply-To: <87bkt8ynbh.fsf@HIDDEN> (Visuwesh's message of "Fri, 29 Jul
 2022 20:32:10 +0530")
Message-ID: <jwv8roc7wtp.fsf-monnier+emacs@HIDDEN>
References: <8735ema73q.fsf@HIDDEN> <83k07xaea1.fsf@HIDDEN>
 <jwv1qu49eop.fsf-monnier+emacs@HIDDEN> <87fsikynn1.fsf@HIDDEN>
 <87bkt8ynbh.fsf@HIDDEN>
Date: Fri, 29 Jul 2022 11:41:26 -0400
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL 0.098 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 56796
Cc: eliz@HIDDEN, 56796 <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 (---)

> But maybe me using hard newlines to tame adaptive-fill-mode is the wrong
> approach: I would like to write lists such as
>
>     . blah blah blah
>     . blah blah blah

I'm not sure "." should be accepted by default, but...

> I can't blame adaptive-fill-mode for it: it can only be ever so smart
> and hard newlines seemed like the solution for "when I say newline, I
> MEAN IT".

I do think it's worth a bug report, because we should handle at least
some "common" cases of itemized lists in ELisp comments, and AFAIK we
currently don't handle any at all.


        Stefan





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

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


Received: (at 56796) by debbugs.gnu.org; 29 Jul 2022 15:02:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 29 11:02:21 2022
Received: from localhost ([127.0.0.1]:33203 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oHRVN-0000dW-Ke
	for submit <at> debbugs.gnu.org; Fri, 29 Jul 2022 11:02:21 -0400
Received: from mail-pl1-f179.google.com ([209.85.214.179]:36515)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <visuweshm@HIDDEN>) id 1oHRVL-0000dC-RA
 for 56796 <at> debbugs.gnu.org; Fri, 29 Jul 2022 11:02:20 -0400
Received: by mail-pl1-f179.google.com with SMTP id x10so4147727plb.3
 for <56796 <at> debbugs.gnu.org>; Fri, 29 Jul 2022 08:02:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc;
 bh=uT89xDwQKKAm/43i455G3qySw0zYFvcSyvakLLrM9Ac=;
 b=HyIbg/6Rolt3u9yLa8my3W03Sfg2ZPj8tVFfHob6FCCAfemwWv6OXQNaxCo5yQitZF
 hxnEXCZ/gOUIyzAEgPEPM1QH9bK+BGMGkEuG/dvVL32sNubh5RFANm6jbYwFPQaxZGTL
 R4p/ySoqtNX3A/uGGl3py0iPlOyGLn/C8+TzNj9CONT5O8AYiebn7BNQZkbP2E6RTESF
 IbCj0P0QuFhUq0WFQEzxQNFq5qqTkypn4Oe6AFtA5XMJyTICgsXbBEw5KSM8AJ9VAA9N
 tiVNQ1Pu4oRogJQPyyPlR0dChtvnW/RNUcaoMOyPCACLysZtt0/ikforCguu0nwHQJMa
 WHYQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc;
 bh=uT89xDwQKKAm/43i455G3qySw0zYFvcSyvakLLrM9Ac=;
 b=36JC6DITmhznbesmTKafMaLJdQzcE5ueZe6jTZAZLX7rcucwg3IwpOKdxgk5tL+nAs
 s1GKHsDUzP30VKenZUl9RupG+GMrYrOGmyn0aplrB3oFJEUVHOd5p+5sDbcMnuzgzA5v
 rc+V5jvdjqD12Lz8N0UAogNTZxCqs5GUmRZ4waPoKzOz7CB6bFvHlNg+jBIdwQ9YX3mM
 r4crOhOWDXH8zhTHoryTI1+832ONZprRW4TXqYkFh4Y+/aZXggHN3M6NJu9yTjs39rYo
 SkrkIaWsgWfEqT4qZpgZIkn/p76kz1qN+JI5mnSk+/lcMWiR6T2VyEdA+MLeNDju2z3Y
 YUxQ==
X-Gm-Message-State: ACgBeo37RwjRiyTp5gLA/9u4VPZBaQeBeJPB+sAIhML8lhn3p4J+Mzd1
 fN7QJqaVxPq3PIGWlo/7FMGuuiYEMow=
X-Google-Smtp-Source: AA6agR6A53NKLOyeIqMm3sz6zWOGRTTZZz4gs+OcMzfTfJJkKmh4cj7wiVCLncdjoQBBXlAPTq4HHw==
X-Received: by 2002:a17:902:8f95:b0:16d:bea5:7bfb with SMTP id
 z21-20020a1709028f9500b0016dbea57bfbmr4306120plo.124.1659106933520; 
 Fri, 29 Jul 2022 08:02:13 -0700 (PDT)
Received: from localhost ([49.204.115.236]) by smtp.gmail.com with ESMTPSA id
 z9-20020a170903018900b0016d987d7f76sm3858178plg.11.2022.07.29.08.02.11
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 29 Jul 2022 08:02:12 -0700 (PDT)
From: Visuwesh <visuweshm@HIDDEN>
To: 56796 <at> debbugs.gnu.org
Subject: Re: bug#56796: 29.0.50; Hard newlines not respected in code comments?
In-Reply-To: <87fsikynn1.fsf@HIDDEN> (Visuwesh's message of "Fri, 29 Jul
 2022 20:25:14 +0530")
References: <8735ema73q.fsf@HIDDEN> <83k07xaea1.fsf@HIDDEN>
 <jwv1qu49eop.fsf-monnier+emacs@HIDDEN> <87fsikynn1.fsf@HIDDEN>
Date: Fri, 29 Jul 2022 20:32:10 +0530
Message-ID: <87bkt8ynbh.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 56796
Cc: eliz@HIDDEN, monnier@HIDDEN
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: -1.0 (-)

[=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=9C=E0=AF=82=
=E0=AE=B2=E0=AF=88 29, 2022] Visuwesh wrote:

>> At the same time, I'm not sure how important it is to handle hard
>> newlines in ELisp comments, so I'm not sure how important it is to
>> fix this.  This bug report only gives a (good) recipe but not a good
>> reason for doing such a thing, so maybe some context explaining how/why
>> such hard newlines can appear in comments would help motivate a fix.

But maybe me using hard newlines to tame adaptive-fill-mode is the wrong
approach: I would like to write lists such as

    . blah blah blah
    . blah blah blah

without it getting filled to

    . blah blah blah. blah blah blah

I can't blame adaptive-fill-mode for it: it can only be ever so smart
and hard newlines seemed like the solution for "when I say newline, I
MEAN IT".




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

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


Received: (at 56796) by debbugs.gnu.org; 29 Jul 2022 14:55:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 29 10:55:34 2022
Received: from localhost ([127.0.0.1]:33198 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oHROn-0000Qr-Pt
	for submit <at> debbugs.gnu.org; Fri, 29 Jul 2022 10:55:34 -0400
Received: from mail-pg1-f193.google.com ([209.85.215.193]:42994)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <visuweshm@HIDDEN>) id 1oHROl-0000QV-Kd
 for 56796 <at> debbugs.gnu.org; Fri, 29 Jul 2022 10:55:32 -0400
Received: by mail-pg1-f193.google.com with SMTP id l193so3810882pge.9
 for <56796 <at> debbugs.gnu.org>; Fri, 29 Jul 2022 07:55:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc;
 bh=1AwzvkUA31M1XrH9JwFcwgQRrhll9GoroZeuILO+JpA=;
 b=gIxscNyUdCOzQVjqXqwoKdSztLsYK5beJluhyj2DkEKkJzUrnOALLRm6m1ayukqB/Y
 4btOvhglTRj6ppyLzC5/Sq239sQHCHbxghoPecGaNGy6SVGag115QPQ5KI2eZ0YZocKY
 3aDsv5J6DGVV1okk0NHMOHInujrs/CQ779+BcAv3h+kBeFDGSbm2mtBv4dDdAmfTJ+5C
 pXJ0DsqGcDemaw8MYpqueAUZycDU5VzTZr2jgkxySi3vkXp1FUjvLOvF9V8nSzj/Xur2
 DqEax+ThU7vtNa7JlTq6kaZUawSXK93qaMMzlpRs45YJ9twMKQR/+SFwtE4WmHoTKK+T
 p4pA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc;
 bh=1AwzvkUA31M1XrH9JwFcwgQRrhll9GoroZeuILO+JpA=;
 b=qgRB3KXznU/pY6icvj0+B/cSKGSvPqmdKkkIZiWFKxVnXb3iroFojJ0T+ehAcfNTWP
 EH+7jTYO+AfSMInva5b9uN0m3e+MD1CdPF0X4db40Ay7/yKugrhzMC5s4HxRx7YWz/LW
 +XurzImMmU8JVIDNorxeZbobh/4pJi1Vs/kcAV//OQ8A8H5AmO0bt57qpgWd8VzlfcTH
 VxaukBPm0GNri2UbBaDvXC7sHPqohgP0wBJsPSFF7YeRxv+yiZ4af0mxGJwZKm6aL71f
 VX1/GIPVi3exCe9x0BX9Iug7S1xNM4VStCldqCb5x3LuS2nAmLFW0VRrRjpiB4Io07DV
 TqJA==
X-Gm-Message-State: AJIora9vMf9GEhc6S7HOuE4m1qMt9I6TEn31w5CQuGlZehOjIJTgNzru
 xPx+r8tCemHhs1iOy1U+WP4=
X-Google-Smtp-Source: AGRyM1scOcCc2hAzpVcsBjSTt5gi7Z3LwyPkfvjnRlDd6RvTukB6UuHOgwX1p3Z1wqz5Renb7FnGew==
X-Received: by 2002:a05:6a00:1a86:b0:52a:d419:9552 with SMTP id
 e6-20020a056a001a8600b0052ad4199552mr3925199pfv.70.1659106525649; 
 Fri, 29 Jul 2022 07:55:25 -0700 (PDT)
Received: from localhost ([49.204.115.236]) by smtp.gmail.com with ESMTPSA id
 c16-20020a170902d49000b0016c0eb202a5sm3742808plg.225.2022.07.29.07.55.23
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 29 Jul 2022 07:55:24 -0700 (PDT)
From: Visuwesh <visuweshm@HIDDEN>
To: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of
 text editors" <bug-gnu-emacs@HIDDEN>
Subject: Re: bug#56796: 29.0.50; Hard newlines not respected in code comments?
In-Reply-To: <jwv1qu49eop.fsf-monnier+emacs@HIDDEN> (Stefan Monnier via's
 message of "Fri, 29 Jul 2022 10:32:21 -0400")
References: <8735ema73q.fsf@HIDDEN> <83k07xaea1.fsf@HIDDEN>
 <jwv1qu49eop.fsf-monnier+emacs@HIDDEN>
Date: Fri, 29 Jul 2022 20:25:14 +0530
Message-ID: <87fsikynn1.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 56796
Cc: Eli Zaretskii <eliz@HIDDEN>, Stefan Monnier <monnier@HIDDEN>,
 56796 <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: -1.0 (-)

[=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=9C=E0=AF=82=
=E0=AE=B2=E0=AF=88 29, 2022] Stefan Monnier via "Bug reports for GNU Emacs,=
 the Swiss army knife of text editors" wrote:

> At the same time, I'm not sure how important it is to handle hard
> newlines in ELisp comments, so I'm not sure how important it is to
> fix this.  This bug report only gives a (good) recipe but not a good
> reason for doing such a thing, so maybe some context explaining how/why
> such hard newlines can appear in comments would help motivate a fix.

Well, wrt Elisp comments at least, we have the Commentary section where
we write quite a lot about the package in question where having hard
newlines would be really handy since you write those text like you do in
a regular text buffer.

More generally: I'm not sure how common this pattern is but I tend to do

    ;; TODO/FIXME: Something...
    ;; Ideas and thoughts on how to clear it here.

Now if you do M-q there, your neatly arranged text is destroyed.  (I am
probably biased) I also catch this pattern in the Emacs source tree as
well.

[ Although not related to Elisp: Documentation for functions/whatever in
  Go are written as comments.  ]




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

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


Received: (at submit) by debbugs.gnu.org; 29 Jul 2022 14:55:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 29 10:55:33 2022
Received: from localhost ([127.0.0.1]:33196 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oHROn-0000Qp-Gk
	for submit <at> debbugs.gnu.org; Fri, 29 Jul 2022 10:55:33 -0400
Received: from lists.gnu.org ([209.51.188.17]:45322)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <visuweshm@HIDDEN>) id 1oHROj-0000QZ-UN
 for submit <at> debbugs.gnu.org; Fri, 29 Jul 2022 10:55:31 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:37828)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <visuweshm@HIDDEN>)
 id 1oHROj-00017m-Oe
 for bug-gnu-emacs@HIDDEN; Fri, 29 Jul 2022 10:55:29 -0400
Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:35562)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <visuweshm@HIDDEN>)
 id 1oHROi-00039e-7W; Fri, 29 Jul 2022 10:55:29 -0400
Received: by mail-pf1-x444.google.com with SMTP id c139so4847391pfc.2;
 Fri, 29 Jul 2022 07:55:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc;
 bh=1AwzvkUA31M1XrH9JwFcwgQRrhll9GoroZeuILO+JpA=;
 b=gIxscNyUdCOzQVjqXqwoKdSztLsYK5beJluhyj2DkEKkJzUrnOALLRm6m1ayukqB/Y
 4btOvhglTRj6ppyLzC5/Sq239sQHCHbxghoPecGaNGy6SVGag115QPQ5KI2eZ0YZocKY
 3aDsv5J6DGVV1okk0NHMOHInujrs/CQ779+BcAv3h+kBeFDGSbm2mtBv4dDdAmfTJ+5C
 pXJ0DsqGcDemaw8MYpqueAUZycDU5VzTZr2jgkxySi3vkXp1FUjvLOvF9V8nSzj/Xur2
 DqEax+ThU7vtNa7JlTq6kaZUawSXK93qaMMzlpRs45YJ9twMKQR/+SFwtE4WmHoTKK+T
 p4pA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc;
 bh=1AwzvkUA31M1XrH9JwFcwgQRrhll9GoroZeuILO+JpA=;
 b=rh2N07rFb1bhHzOP+ANm/uuhQknusgN7COpX3P52h9jhrjcCg1aoVDd+KyvvpWTK/H
 8r4QWUhAN+8kp6qnu/bt+frJJggoXNqkVldVXYgikf7ty026yoWN/5mbIqHRZizYn9aQ
 If3kVBCrS/2cbEn6J9IrGYx/DFYTVokrD7TUKp3fqq4IDdlOGu+/aO29goAZRFq1RTNa
 A/Xlr4VmUiNI4gbzGabN3wVWs2q/lowY+o+yp2bGNfyV8LTqMbR0U+tgY7xvEvYMsl1o
 2+YXJ7XhhSByC5O+R9yaKtCFDan3Si7AI0foOEgHv79rZIosTdMZp6c8+Q9Q8HXwlfRA
 FV4g==
X-Gm-Message-State: AJIora+hh4zFNGEul1v7ZaXpXA43rBFY4QYHti2yLWX8+Dla45oz45AQ
 OY9FPx+pVJwIHXBMtltphqzKILTcZ9Q=
X-Google-Smtp-Source: AGRyM1scOcCc2hAzpVcsBjSTt5gi7Z3LwyPkfvjnRlDd6RvTukB6UuHOgwX1p3Z1wqz5Renb7FnGew==
X-Received: by 2002:a05:6a00:1a86:b0:52a:d419:9552 with SMTP id
 e6-20020a056a001a8600b0052ad4199552mr3925199pfv.70.1659106525649; 
 Fri, 29 Jul 2022 07:55:25 -0700 (PDT)
Received: from localhost ([49.204.115.236]) by smtp.gmail.com with ESMTPSA id
 c16-20020a170902d49000b0016c0eb202a5sm3742808plg.225.2022.07.29.07.55.23
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Fri, 29 Jul 2022 07:55:24 -0700 (PDT)
From: Visuwesh <visuweshm@HIDDEN>
To: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of
 text editors" <bug-gnu-emacs@HIDDEN>
Subject: Re: bug#56796: 29.0.50; Hard newlines not respected in code comments?
In-Reply-To: <jwv1qu49eop.fsf-monnier+emacs@HIDDEN> (Stefan Monnier via's
 message of "Fri, 29 Jul 2022 10:32:21 -0400")
References: <8735ema73q.fsf@HIDDEN> <83k07xaea1.fsf@HIDDEN>
 <jwv1qu49eop.fsf-monnier+emacs@HIDDEN>
Date: Fri, 29 Jul 2022 20:25:14 +0530
Message-ID: <87fsikynn1.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2607:f8b0:4864:20::444;
 envelope-from=visuweshm@HIDDEN; helo=mail-pf1-x444.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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.3 (-)
X-Debbugs-Envelope-To: submit
Cc: Eli Zaretskii <eliz@HIDDEN>, Stefan Monnier <monnier@HIDDEN>,
 56796 <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: -2.3 (--)

[=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=9C=E0=AF=82=
=E0=AE=B2=E0=AF=88 29, 2022] Stefan Monnier via "Bug reports for GNU Emacs,=
 the Swiss army knife of text editors" wrote:

> At the same time, I'm not sure how important it is to handle hard
> newlines in ELisp comments, so I'm not sure how important it is to
> fix this.  This bug report only gives a (good) recipe but not a good
> reason for doing such a thing, so maybe some context explaining how/why
> such hard newlines can appear in comments would help motivate a fix.

Well, wrt Elisp comments at least, we have the Commentary section where
we write quite a lot about the package in question where having hard
newlines would be really handy since you write those text like you do in
a regular text buffer.

More generally: I'm not sure how common this pattern is but I tend to do

    ;; TODO/FIXME: Something...
    ;; Ideas and thoughts on how to clear it here.

Now if you do M-q there, your neatly arranged text is destroyed.  (I am
probably biased) I also catch this pattern in the Emacs source tree as
well.

[ Although not related to Elisp: Documentation for functions/whatever in
  Go are written as comments.  ]




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

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


Received: (at 56796) by debbugs.gnu.org; 29 Jul 2022 14:32:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jul 29 10:32:34 2022
Received: from localhost ([127.0.0.1]:33188 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oHR2Y-0008Ez-De
	for submit <at> debbugs.gnu.org; Fri, 29 Jul 2022 10:32:34 -0400
Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:12413)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <monnier@HIDDEN>) id 1oHR2W-0008Ee-7g
 for 56796 <at> debbugs.gnu.org; Fri, 29 Jul 2022 10:32:33 -0400
Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 88795805C8;
 Fri, 29 Jul 2022 10:32:26 -0400 (EDT)
Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1])
 by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id F105B803C3;
 Fri, 29 Jul 2022 10:32:24 -0400 (EDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca;
 s=mail; t=1659105144;
 bh=DkEHg9TUVrPceeVR6TdaAdEHa+V9C/m7ZccZ8FQZ4us=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From;
 b=DPVhaY3a2f6KVRXEzSZTuMX2NEAZTwiqY7FYDE5mFDh5LH54YaMaeKVblz9GKh0zH
 gKX4M2qm6qBhKIrRLOjzzk6YMhl8z7ZETXVJXvKa81RXH222rRNK/xur2+PRNViNyy
 w3aQBGWNOteB3WtO/NJddgRAHv11+f8Cm/qlq9TFwhnw2d2a33rrSldxGX3v/gg/S5
 RTwnyshBLAmCOUAMqYajRbhO4TL/FXgiOyC3xrTsBmo6IeHLCcO19uj+rAfjaLUfLs
 bkOaOFGKgxBeAEJk43HH2wlXl1u4wexCR453qz20dAy/Xg2jU38PlWH4OkRxdnJdzo
 SY5zyhGuOVvBA==
Received: from milanesa (dyn.144-85-172-183.dsl.vtx.ch [144.85.172.183])
 by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 165811203F3;
 Fri, 29 Jul 2022 10:32:23 -0400 (EDT)
From: Stefan Monnier <monnier@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#56796: 29.0.50; Hard newlines not respected in code comments?
In-Reply-To: <83k07xaea1.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 28 Jul
 2022 10:26:46 +0300")
Message-ID: <jwv1qu49eop.fsf-monnier+emacs@HIDDEN>
References: <8735ema73q.fsf@HIDDEN> <83k07xaea1.fsf@HIDDEN>
Date: Fri, 29 Jul 2022 10:32:21 -0400
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-SPAM-INFO: Spam detection results:  0
 ALL_TRUSTED                -1 Passed through trusted hosts only via SMTP
 AWL -0.078 Adjusted score from AWL reputation of From: address
 BAYES_00                 -1.9 Bayes spam probability is 0 to 1%
 DKIM_SIGNED               0.1 Message has a DKIM or DK signature,
 not necessarily valid
 DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature
 DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's
 domain
X-SPAM-LEVEL: 
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 56796
Cc: 56796 <at> debbugs.gnu.org, Visuwesh <visuweshm@HIDDEN>
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 (---)

> Adding Stefan to CC, who write fill-comment-paragraph.  If we want
> use-hard-newlines to be supported in comments, we should modify
> fill-comment-paragraph to honor it in some way, perhaps simply
> deferring to fill-region in that case.

It was many years ago, but IIRC the autor of that code presumed it was
used in "code" and he also presumed that hard newlines are only for
"text", and furthermore it presumed that the two are mutually exclusive.
He was apparently a quite naive young fellow,

At the same time, I'm not sure how important it is to handle hard
newlines in ELisp comments, so I'm not sure how important it is to
fix this.  This bug report only gives a (good) recipe but not a good
reason for doing such a thing, so maybe some context explaining how/why
such hard newlines can appear in comments would help motivate a fix.


        Stefan





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

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


Received: (at 56796) by debbugs.gnu.org; 28 Jul 2022 08:20:34 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 28 04:20:34 2022
Received: from localhost ([127.0.0.1]:57529 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oGykz-0004lP-V5
	for submit <at> debbugs.gnu.org; Thu, 28 Jul 2022 04:20:34 -0400
Received: from mail-pl1-f193.google.com ([209.85.214.193]:38424)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <visuweshm@HIDDEN>) id 1oGykw-0004l5-Uh
 for 56796 <at> debbugs.gnu.org; Thu, 28 Jul 2022 04:20:31 -0400
Received: by mail-pl1-f193.google.com with SMTP id o3so1179339ple.5
 for <56796 <at> debbugs.gnu.org>; Thu, 28 Jul 2022 01:20:30 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=from:to:cc:subject:in-reply-to:references:date:message-id
 :user-agent:mime-version:content-transfer-encoding;
 bh=VXAnLY23gKc7p5k/aUCYclmu5772DGQokS2gTOhCnG0=;
 b=VHtlNOpHLuLMKDTEpFfqHFmMffK7taGq3i6psq9kNd1Ro9SpsDYH4Tipa5pROjO5Yp
 kZgDdEcbOMLTU5T1aJw/5iSh/fiXqeHf3JH1IAs9Seoc7HxxQ/kpas9H4GlbhUKqN7pn
 HMICKOm6Cx62rbYgDEXSySq+uHu2Cg7ehPu87iQEM4xIC9COD76MB2H6u+97IagNMmIq
 oZ+ayKr4JuGKYZicwl/Jr1K1lWuTOzwrXtJVX+dNkjL+gciXNINR5eNqIDFldzfVVv46
 DtQHYPYtXLHTeGH9lfcbuNujRnL2AF6Vwn5u9ucSGlGcuXBhRCaDchdfBEqWktUdkKVB
 23lg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date
 :message-id:user-agent:mime-version:content-transfer-encoding;
 bh=VXAnLY23gKc7p5k/aUCYclmu5772DGQokS2gTOhCnG0=;
 b=x2y6IbKGjXDRPek7XCqN6b/6kB3Q9kQmraMeTkdCG9I87IZCWLuX2wWsAKOVeGyVjF
 jNHLOUCgB4sWol72V1tfRKRe+vRgLgpiEYxF0Q77el5FUwwVBoqqC8M8XSNr1Nx0nmyY
 OSMAjuxAAlgrbbK/JW+kAlTG9XoxKFUT/36KbljaliSST9HgjWTmCMxuHLHK37FUFPRY
 V1PC1hGx0WQyNTZkwk152hcnylDzU+6ggeXj7R2SzlQFXk4i9uE12tmnA55LAba0Okjh
 EsMGr8UkELs5RUYfsZrAOpWgUX35I6z7MelvvuBz4dBBoKXGgGD2M6TtQh1qCWCgbd79
 ya0g==
X-Gm-Message-State: AJIora9u+pi3P8anVAtE3C9qAypeRHQK6lef6LVp5vjReo6Fmp5yTKTT
 Px884T9GJ9O0YmtQVcfKFbo=
X-Google-Smtp-Source: AGRyM1uWXPq9phLXoo99PXFtSA2RAtn4wlikCwUGm5iTSR6f0tRcf0DY0ehBqhhCSi+SGaxbC6ZKzQ==
X-Received: by 2002:a17:903:245:b0:16b:9c49:6b1c with SMTP id
 j5-20020a170903024500b0016b9c496b1cmr24480183plh.153.1658996424795; 
 Thu, 28 Jul 2022 01:20:24 -0700 (PDT)
Received: from localhost ([49.204.141.236]) by smtp.gmail.com with ESMTPSA id
 f4-20020a62db04000000b005251fc16ff8sm3497pfg.220.2022.07.28.01.20.23
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Thu, 28 Jul 2022 01:20:24 -0700 (PDT)
From: Visuwesh <visuweshm@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#56796: 29.0.50; Hard newlines not respected in code comments?
In-Reply-To: <83k07xaea1.fsf@HIDDEN> (Eli Zaretskii's message of "Thu, 28 Jul
 2022 10:26:46 +0300")
References: <8735ema73q.fsf@HIDDEN> <83k07xaea1.fsf@HIDDEN>
Date: Thu, 28 Jul 2022 13:50:06 +0530
Message-ID: <87pmhpodhl.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 56796
Cc: Stefan Monnier <monnier@HIDDEN>, 56796 <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: -1.0 (-)

[=E0=AE=B5=E0=AE=BF=E0=AE=AF=E0=AE=BE=E0=AE=B4=E0=AE=A9=E0=AF=8D =E0=AE=9C=
=E0=AF=82=E0=AE=B2=E0=AF=88 28, 2022] Eli Zaretskii wrote:

>> From: Visuwesh <visuweshm@HIDDEN>
>> Date: Wed, 27 Jul 2022 21:19:29 +0530
>>=20
>> Are hard newlines supposed to be respected when they are in code
>> comments?
>
> The answer is "it depends", AFAICS.
>
> The main problem is that fill-comment-paragraph doesn't seem to honor
> use-hard-newlines.  So any major mode whose fill-paragraph-function
> uses that for filling comments will fail to pay attention to hard
> newlines in comments.  In your scenario, if I set both
> fill-paragraph-function and fill-paragraph-handle-comment to nil, hard
> newlines in comments are honored as expected.

Thanks for the explanation, I figured that was the case.

> If we want use-hard-newlines to be supported in comments, we should
> modify fill-comment-paragraph to honor it in some way, perhaps simply
> deferring to fill-region in that case.

That would be most welcome.  Hard newlines was the "missing key" in
making writing plain text more easy and enjoyable to me.




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

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


Received: (at 56796) by debbugs.gnu.org; 28 Jul 2022 07:26:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jul 28 03:26:48 2022
Received: from localhost ([127.0.0.1]:57480 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oGxuy-0003Ai-4b
	for submit <at> debbugs.gnu.org; Thu, 28 Jul 2022 03:26:48 -0400
Received: from eggs.gnu.org ([209.51.188.92]:53408)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1oGxuu-0003AS-1v
 for 56796 <at> debbugs.gnu.org; Thu, 28 Jul 2022 03:26:47 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:45408)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oGxuo-0002jn-PS; Thu, 28 Jul 2022 03:26:38 -0400
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=YwrbEozYF0LzFsrtYBkfAKTX9KMOv/pgaTvaTkEkJRI=; b=CzlSFfiC/8V3
 T+hJrD6r5VOwgehx0gXMmlFE2YHzQkFpZUl1PxCOvNNMbtfRMkBY34mlUIIRCAvEw6vSO2k7EQOON
 Qdcs/Fxa60GTv7yzf90nVmmW3BlSQ+7SP8Zdz9F/CubaQVTqHVR2Sr4Ry2XcA0VuP+90PywkcPGxL
 c+FbU7fniCCfzGhYAf2aMVah4m8+HIsISVR3s3HXS9pTcFUt/Y+M2+C/xRNu6Y0BfFsA0uHt0Pn96
 3A6gvUihjagTILpv/jZGIUml85K7vB39uQNRyWWl+2J681zB6PTzXbzr1khqrnkOZ9UXVDiIinQOT
 F7n9DDf6Z28e2NumeGlS7A==;
Received: from [87.69.77.57] (port=4625 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1oGxun-00041h-8v; Thu, 28 Jul 2022 03:26:38 -0400
Date: Thu, 28 Jul 2022 10:26:46 +0300
Message-Id: <83k07xaea1.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Visuwesh <visuweshm@HIDDEN>, Stefan Monnier <monnier@HIDDEN>
In-Reply-To: <8735ema73q.fsf@HIDDEN> (message from Visuwesh on Wed, 27 Jul
 2022 21:19:29 +0530)
Subject: Re: bug#56796: 29.0.50; Hard newlines not respected in code comments?
References: <8735ema73q.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 56796
Cc: 56796 <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 (---)

> From: Visuwesh <visuweshm@HIDDEN>
> Date: Wed, 27 Jul 2022 21:19:29 +0530
> 
> Are hard newlines supposed to be respected when they are in code
> comments?

The answer is "it depends", AFAICS.

The main problem is that fill-comment-paragraph doesn't seem to honor
use-hard-newlines.  So any major mode whose fill-paragraph-function
uses that for filling comments will fail to pay attention to hard
newlines in comments.  In your scenario, if I set both
fill-paragraph-function and fill-paragraph-handle-comment to nil, hard
newlines in comments are honored as expected.

use-hard-newlines is weird: it is documented only for Enriched mode,
but that is at least incomplete, because we call functions from
fill.el high and low in many major modes, so at least some of them
inherit the use-hard-newlines-specific code when they call functions
which do.  For example, AFAICT use-hard-newlines is supported in Lisp
doc strings.

Adding Stefan to CC, who write fill-comment-paragraph.  If we want
use-hard-newlines to be supported in comments, we should modify
fill-comment-paragraph to honor it in some way, perhaps simply
deferring to fill-region in that case.




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

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


Received: (at submit) by debbugs.gnu.org; 27 Jul 2022 15:49:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 27 11:49:54 2022
Received: from localhost ([127.0.0.1]:56794 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1oGjII-0008AQ-5O
	for submit <at> debbugs.gnu.org; Wed, 27 Jul 2022 11:49:54 -0400
Received: from lists.gnu.org ([209.51.188.17]:57564)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <visuweshm@HIDDEN>) id 1oGjIE-0008AG-DB
 for submit <at> debbugs.gnu.org; Wed, 27 Jul 2022 11:49:53 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:43990)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <visuweshm@HIDDEN>)
 id 1oGjIB-00046s-Qn
 for bug-gnu-emacs@HIDDEN; Wed, 27 Jul 2022 11:49:49 -0400
Received: from mail-pf1-x443.google.com ([2607:f8b0:4864:20::443]:34324)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <visuweshm@HIDDEN>)
 id 1oGjI9-0000Oh-Nu
 for bug-gnu-emacs@HIDDEN; Wed, 27 Jul 2022 11:49:47 -0400
Received: by mail-pf1-x443.google.com with SMTP id 70so16504674pfx.1
 for <bug-gnu-emacs@HIDDEN>; Wed, 27 Jul 2022 08:49:44 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112;
 h=from:to:subject:date:message-id:user-agent:mime-version;
 bh=cI//X5NUcH9yvULRO/zoGQeoxLIMwn8PIjeiRavW2i8=;
 b=WNR6AcbHmGoK7A1JovUImzTs2TkU3LgVCn6lRHSlBKY9uIwOsAsRazwopMVxof2udV
 eX3cA4XwlI15AdK7sea+IPZqIM68xQYxZNiz3dOH1XSIZkMqxG/IjOTXA17sDX7VDcAf
 qRYpCPMopv7H5zdzhZ3+ezaRBbVWhSBWcoQoUl8uK5e4sK6xuXNs/2UZgRJVfDEZjWsQ
 zlechymWT3IMASDw5UMHgBKatrwgWzy0OiCoLi2L0wUtQPIV2xk32ruRqorwsYMNesXi
 EQhIwQH4AChqTDaiZsIjO0lnhgLYwNzeKYBvYEj2z16YO9bEzKgtv3TGPZuhQCbzQgJB
 wVsg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20210112;
 h=x-gm-message-state:from:to:subject:date:message-id:user-agent
 :mime-version;
 bh=cI//X5NUcH9yvULRO/zoGQeoxLIMwn8PIjeiRavW2i8=;
 b=QBgztRP8n8Djs2xEgdYKUfeYgdxaw94kf0JeeZB2TAnXw+ogHuws4BlPFSpIoWkAMl
 d71UHRJR3vvtwzpa1Cxax9llUhzUxF8poyMhcWEkK+Gjjj0+u3DdT0uRhFkxLM+E6DIe
 ZrCxYw1Rb+Ji372q5PpKzLPiSkePYCgpA/BC09S5G/yPxihJHF9g1NG3uG7JU/MhRZ6h
 tTMKcC8E+lknDcpjzADcbEb6f9w8oNTYnywisK1nLFPVYAynwSFPESso2algThENqvIt
 sVfEIKP72pfLlO5WVtYZiADvz4sWXTaijEdi4jzTHdmczp6K/8bjdHfywF6fCtI7esNQ
 iIhA==
X-Gm-Message-State: AJIora8PuEvDtiAqrIFQ+E9zBTGGr5kI7Xl1FuD9rwlORyE4RS1bgb1F
 Bf6WOfp06tZATohbKvdUyUkY2yPfxcE=
X-Google-Smtp-Source: AGRyM1tFDByXAAJQ5iknM+w3MgT6GcygickxQGqkCntTbEB9070wFA6cc6rR55dDMXXD+OzzXXkyGw==
X-Received: by 2002:a62:6545:0:b0:52b:6daa:1540 with SMTP id
 z66-20020a626545000000b0052b6daa1540mr22463141pfb.29.1658936983098; 
 Wed, 27 Jul 2022 08:49:43 -0700 (PDT)
Received: from localhost ([49.204.114.151]) by smtp.gmail.com with ESMTPSA id
 b20-20020a17090a8c9400b001f0097c2fb2sm1899924pjo.28.2022.07.27.08.49.39
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 27 Jul 2022 08:49:40 -0700 (PDT)
From: Visuwesh <visuweshm@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 29.0.50; Hard newlines not respected in code comments?
Date: Wed, 27 Jul 2022 21:19:29 +0530
Message-ID: <8735ema73q.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=2607:f8b0:4864:20::443;
 envelope-from=visuweshm@HIDDEN; helo=mail-pf1-x443.google.com
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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_NONE=-0.0001, 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.3 (-)
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: -2.3 (--)

Are hard newlines supposed to be respected when they are in code
comments?  To demonstrate what I mean consider the two following cases
in emacs -Q and after M-x use-hard-newlines RET,

1. Paste the following lisp comment in the *scratch* buffer

       ;; This buffer is for text that is not saved, and for Lisp.
       ;; To create a file, visit it with C-x C-f and enter text in its buffer.
       
   And make the newline after "Lisp." hard (RET C-k works).  Then
   say M-q, "To create" creeps up to the first line.

2. Paste the following text in a text-mode buffer

       This buffer is for text that is not saved, and for Lisp.
       To create a file, visit it with C-x C-f and enter text in its buffer.

   Then make the newline after "Lisp." hard again.  Say M-q now, "To
   create" stays in the second line.

(1) happens in python-mode and sh-mode too so I don't think it is
major-mode specific?

In GNU Emacs 29.0.50 (build 26, x86_64-pc-linux-gnu, X toolkit, Xaw scroll bars)
 of 2022-07-22 built on astatine
Repository revision: 12a3137cd381cb743768033e789b900b015041d7
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101003
System Description: Debian GNU/Linux bookworm/sid

Configured using:
 'configure --with-sound=alsa --with-x-toolkit=lucid --with-json
 --without-xaw3d --without-gconf --without-libsystemd --without-cairo'
Configured features:
ACL DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON
LIBOTF LIBSELINUX LIBXML2 MODULES NOTIFY INOTIFY PDUMPER PNG RSVG
SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XFT
XIM XINPUT2 XPM LUCID ZLIB
Important settings:
  value of $LC_MONETARY: ta_IN.UTF-8
  value of $LC_NUMERIC: ta_IN.UTF-8
  value of $LANG: en_GB.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Info

Minor modes in effect:
  recentf-mode: t
  text-scale-mode: t
  shell-dirtrack-mode: t
  eros-mode: t
  pdf-occur-global-minor-mode: t
  minibuffer-depth-indicate-mode: t
  repeat-mode: t
  display-time-mode: t
  display-battery-mode: t
  winner-mode: t
  delete-selection-mode: t
  straight-use-package-mode: t
  straight-package-neutering-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  use-hard-newlines: t
  tab-bar-mode: t
  file-name-shadow-mode: t
  isearch-fold-quotes-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  undelete-frame-mode: t
  buffer-read-only: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
/home/viz/lib/emacs/straight/build/faceup/faceup hides /home/viz/lib/ports/emacs/lisp/emacs-lisp/faceup

Features:
(shadow ecomplete emacsbug view xref expand-region text-mode-expansions
cc-mode-expansions the-org-mode-expansions er-basic-expansions
expand-region-core expand-region-custom org-element avl-tree generator
org-capture doct pdf-sync pdf-annot facemenu pdf-outline pdf-links
pdf-history descr-text wdired misc tramp-archive tramp-gvfs tramp
tramp-loaddefs trampver tramp-integration cus-start tramp-compat ls-lisp
nov ob-C cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align
cc-engine cc-vars cc-defs ob-shell ob-racket async ob-async cdlatex
texmathp ol-eww ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect
ol-docview doc-view ol-bibtex ol-bbdb ol-w3m ol-doi org-link-doi
org-tempo tempo org-id org-refile ol-man org ob ob-tangle ob-ref ob-lob
ob-table ob-exp org-macro org-footnote org-src ob-comint org-pcomplete
org-list org-faces org-entities org-version ob-emacs-lisp ob-core
ob-eval org-table oc-basic bibtex ol org-keys oc org-compat org-macs
org-loaddefs esxml-query dired-aux gnus-dired timezone
display-line-numbers ement-room-list ement ement-notify notifications
ement-room ement-lib ement-api ement-structs plz ement-macros
taxy-magit-section magit-section taxy ewoc dns rfc1345 dabbrev
smerge-mode log-edit add-log avy flyspell ispell time-stamp shortdoc
completion pulse color reveal noutline outline bug-reference recentf
tree-widget misearch multi-isearch cl-print help-fns radix-tree
mule-util apropos url-http url-gw url-cache url-auth eww xdg url-queue
mm-url gnus-cite mm-archive mail-extr textsec uni-scripts idna-mapping
ucs-normalize uni-confusable textsec-check gnus-bcklg qp network-stream
nsm gnus-async sort gnus-ml nndraft nnmh nnfolder nnmaildir nnagent nnml
vc-backup log-view pcvs-util vc vc-git diff-mode vc-dispatcher nnnil
gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art
mm-uu mml2015 mm-view mml-smime smime gnutls dig nntp gnus-cache
gnus-sum shr pixel-fill kinsoku url-file url-dired svg gnus-group
gnus-undo gnus-start gnus-dbus gnus-cloud nnimap nnmail mail-source utf7
netrc nnoo parse-time iso8601 gnus-spec gnus-int gnus-range message
sendmail yank-media puny rfc822 mml mml-sec epa epg rfc6068 epg-config
mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045
ietf-drums mailabbrev gmm-utils mailheader gnus-win gnus nnheader
gnus-util mail-utils range mm-util mail-prsvr face-remap sh-script smie
executable files-x shell-command+ diff cursor-sensor shell pcomplete
server paredit edmacro kmacro eros time-date checkdoc lisp-mnt
flymake-proc flymake project warnings thingatpt wordel-autoloads
sokoban-autoloads ement-autoloads svg-lib-autoloads
taxy-magit-section-autoloads magit-section-autoloads dash-autoloads
taxy-autoloads plz-autoloads nov-autoloads esxml-autoloads kv-autoloads
transmission-autoloads lua-mode-autoloads nix-mode-autoloads
racket-mode-autoloads pos-tip-autoloads faceup-autoloads eros-autoloads
flymake-shellcheck-autoloads writegood-mode-autoloads
siege-mode-autoloads paredit-autoloads puni-autoloads
expand-region-autoloads filladapt-autoloads compose quail
scroll-other-window org-pdftools-autoloads org-noter-autoloads
change-env-autoloads math-delimiters-autoloads doct-autoloads
ob-async-autoloads async-autoloads emacs-ob-racket-autoloads
valign-autoloads cdlatex-autoloads auctex-autoloads tex-site pdf-occur
ibuf-ext ibuffer ibuffer-loaddefs tablist advice tablist-filter
semantic/wisent/comp semantic/wisent semantic/wisent/wisent
semantic/util-modes semantic/util semantic semantic/tag semantic/lex
semantic/fw mode-local cedet pdf-isearch let-alist pdf-misc imenu
pdf-tools package browse-url url url-proxy url-privacy url-expand
url-methods url-history url-cookie generate-lisp-file url-domsuf
url-util mailcap url-handlers url-parse auth-source eieio eieio-core
json map byte-opt url-vars compile comint ansi-color cus-edit edebug
debug backtrace find-func wid-edit pdf-view password-cache jka-compr
pdf-cache pdf-info tq pdf-util pdf-macs image-mode dired-x dired
dired-loaddefs exif pdf-tools-autoloads tablist-autoloads mb-depth
repeat visual-fill-autoloads olivetti-autoloads time format-spec battery
dbus filenotify xml dom disp-table lacarte-autoloads
shell-command-plus-autoloads winner ring delsel cus-load easy-mmode
avy-autoloads finder-inf vc-backup-autoloads compat-autoloads icalendar
diary-lib diary-loaddefs cal-menu calendar cal-loaddefs rx filecache
imenu-xref-autoloads derived chemtable-autoloads molar-mass-autoloads
saveplace-pdf-view saveplace bookmark text-property-search pp
saveplace-pdf-view-autoloads pcase inspector-autoloads xr-autoloads
straight-autoloads cl-seq info cl-extra help-mode straight subr-x
cl-macs gv cl-loaddefs cl-lib bytecomp byte-compile cconv vz-nh-theme
vz-options-theme rmc iso-transl tooltip eldoc paren electric uniquify
ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode lisp-mode prog-mode register
page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer nadvice seq simple cl-generic indonesian philippine
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs faces cus-face macroexp files window
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget keymap hashtable-print-readable backquote threads dbusbind
inotify dynamic-setting system-font-setting font-render-setting
x-toolkit xinput2 x multi-tty make-network-process emacs)

Memory information:
((conses 16 1185460 222926) (symbols ?0 54909 174) (strings 32 331022 18751) (string-bytes 1 15084068) (vectors 16 124750) (vector-slots 8 2627127 187625) (floats 8 1200 3465) (intervals ?8 120571 4446) (buffers 992 ?P))




Acknowledgement sent to Visuwesh <visuweshm@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#56796; 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: Thu, 4 Aug 2022 14:00:02 UTC

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