From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#56197: lisp-fill-paragraph behavior changed in Emacs 28 Date: Sat, 04 Jan 2025 16:19:27 +0200 Message-ID: <867c7ad5lc.fsf@gnu.org> References: <87zgi2xcgm.fsf@gmail.com> <87y1xlj6wn.fsf@gnus.org> <834k08c3se.fsf@gnu.org> <874k08kj31.fsf@gnus.org> <87y1xkj4co.fsf@gnus.org> <87tu88j3tf.fsf@gnus.org> <87bjwzr027.fsf@lease-up.com> <86v7v7ynf0.fsf@gnu.org> <87seq8tm2f.fsf@gmail.com> <86o70wurf9.fsf@gnu.org> <87ttanrg9h.fsf@gmail.com> <87v7uuevq1.fsf_-_@gmail.com> <86ed1id6a3.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30212"; mail-complaints-to="usenet@ciao.gmane.io" Cc: larsi@gnus.org, 56197@debbugs.gnu.org, felix.lechner@lease-up.com, stefankangas@gmail.com To: maxim.cournoyer@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jan 04 15:20:14 2025 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tU50f-0007it-TS for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Jan 2025 15:20:13 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tU50X-0005hF-Ro; Sat, 04 Jan 2025 09:20:05 -0500 Original-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 ) id 1tU50V-0005fF-Qj for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 09:20:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tU50V-0005Lb-HX for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 09:20:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=71SitwnFM98lIcR6LE4GuA081pH+oo6O2rwvyY/K7qc=; b=cXhTvQZs8YXssDYrrMtYLMqVJ+mTa+Nc5xXlg5U1CVDSJVFz3EytaPAwro7PiJcg/gKoU5FM0vG6jPJ1MpcJGQEIH4MTc7odNPY3tw9BKE7K/YHZMd8t1/fd3MdSv95gS1talHd8vkJdlFW1eB+6vcBzczmYHtxscdlCL8T839DxpYmCQ2QcFXtXGYrEwGjmTxkRVApSgF/mCmXtZTlbJSWFNdkPG4CM2JGjw1yViexeHwdUoAdhVORuycVaIZrrf87Ass+ao1mhDQ7jXbmtdwdvVrFonRRlwDMdcdZ+VoXmE0YJMe2ULnVaAzb0NceOxD41ni9SCuhlL6Mpxw2v6w==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tU50V-0001xw-4z for bug-gnu-emacs@gnu.org; Sat, 04 Jan 2025 09:20:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Jan 2025 14:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56197 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 56197-submit@debbugs.gnu.org id=B56197.17360003827516 (code B ref 56197); Sat, 04 Jan 2025 14:20:02 +0000 Original-Received: (at 56197) by debbugs.gnu.org; 4 Jan 2025 14:19:42 +0000 Original-Received: from localhost ([127.0.0.1]:54037 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tU508-0001x9-Iz for submit@debbugs.gnu.org; Sat, 04 Jan 2025 09:19:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35254) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tU504-0001wt-VC for 56197@debbugs.gnu.org; Sat, 04 Jan 2025 09:19:38 -0500 Original-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 ) id 1tU4zy-00057b-Vn; Sat, 04 Jan 2025 09:19:30 -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=71SitwnFM98lIcR6LE4GuA081pH+oo6O2rwvyY/K7qc=; b=Li4+AgDOc+Ix Wku70xLQreDja9ucqPkl0Biw2G8xpp0I9hCJ5huG5Y+I1yjYt4eZ+nxIWaSRFQCtivkbQE9yg7dqZ YAHLJs3q2UO+YSxl+Pv1YYHR8tINvZC7E2O/S1mNsVKXHXanRDtyPW1dU6i/fWTGIOJimMYnIieJV 1YAgibzN5DLyqHy2/KKLIIThz9AV4wM3utPThAFhAiI47wQy5yFw6LyCAp9lHXHBS0O6vAmBqGwXO TWRepW6xQ6fI7NntIBdSoEW5PPgsLBdmskQwKWaq2mdp4u21twppLM45arbMhRKLfW+sIgRcv2qx9 JwaCeK33BtyJZ8ZmGobn1w==; In-Reply-To: <86ed1id6a3.fsf@gnu.org> (message from Eli Zaretskii on Sat, 04 Jan 2025 16:04:36 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298413 Archived-At: > Cc: larsi@gnus.org, 56197@debbugs.gnu.org, felix.lechner@lease-up.com, > stefankangas@gmail.com > Date: Sat, 04 Jan 2025 16:04:36 +0200 > From: Eli Zaretskii > > > From: Maxim Cournoyer > > Cc: larsi@gnus.org, 56197@debbugs.gnu.org, felix.lechner@lease-up.com, > > stefankangas@gmail.com > > Date: Sat, 04 Jan 2025 19:09:42 +0900 > > > > >> I don't see how a user option to control this could be useful, since > > >> the preferred behavior is not only buffer-local, but also specific to > > >> certain syntactic constructs. But I won't object to having such an > > >> option. > > > > > > Having the behavior defined per-project or even globally (reverting to > > > the the pre-Emacs 28 behavior) via a simple option seems like it'd > > > simplify things, and make them discoverable. > > > > I tried fixing this generally, as it seems to me that something in > > lisp-mode should be meet the needs of all lisp-derived languages such as > > Scheme and not just Elisp. I first added two tests, one of which > > ensures no regression to the original bug that lead to this current > > behavioral change (bug#28937) and the other one that should pass once > > the issue reported here (bug#56197) is resolved. > > > > The last patch is a WIP that didn't work; I was hoping that inserting > > spaces corresponding to the width of the indent in the narrowed string > > would cause the indent to be preserved only for the first line. I don't > > have other ideas at the moment; I'd appreciate if someone could tip in. > > Since you submitted a new bug report about this issue, does that mean > these comments and the patches are no longer pertinent? Sorry, I should have written "new patch", not "new bug report".