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#64535: 30.0.50; Spurious newlines in `prin1` output Date: Sat, 15 Jul 2023 10:29:54 +0300 Message-ID: <835y6leiod.fsf@gnu.org> References: <83v8etbrhe.fsf@gnu.org> <83cz0ufwan.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7480"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 64535@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 15 09:30:15 2023 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 1qKZjJ-0001mX-Rq for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Jul 2023 09:30:14 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qKZj9-000393-Pt; Sat, 15 Jul 2023 03:30:03 -0400 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 1qKZj8-00038Y-Af for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2023 03:30:02 -0400 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 1qKZj8-0008Fr-2U for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2023 03:30:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qKZj7-0000sP-R2 for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2023 03:30:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Jul 2023 07:30:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64535 X-GNU-PR-Package: emacs Original-Received: via spool by 64535-submit@debbugs.gnu.org id=B64535.16894061813317 (code B ref 64535); Sat, 15 Jul 2023 07:30:01 +0000 Original-Received: (at 64535) by debbugs.gnu.org; 15 Jul 2023 07:29:41 +0000 Original-Received: from localhost ([127.0.0.1]:43950 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKZim-0000rQ-Ic for submit@debbugs.gnu.org; Sat, 15 Jul 2023 03:29:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53366) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKZil-0000rC-3c for 64535@debbugs.gnu.org; Sat, 15 Jul 2023 03:29:40 -0400 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 1qKZif-0008Cc-Gh; Sat, 15 Jul 2023 03:29:33 -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=xffDoLF2BGN8a19tEGuW7tal+FaUzPzPQwUycGe8ydM=; b=jwiPqek/hQV6 rW2jHub3sMkYcz+U3w2/HFz4yxKdx9NeE7s0AnQlfpQY0qQrExQGZekx1uJ9ETzAw/xMFj5YVipmP 432Ag6pEk6e3lwlsbT4aeUGeM84RV+6hWNWQ5A/utuahfPTdPQD7xiFaD7TgsETinp5WCMhLa9fvU vB+wjdBPQPRWdemYqoEZewU1hjIi3TmbWFLiZmNsPGt2Nbxa43UTJL1gTAgzy+c3QTx83B/dCLW1+ LfYp98nbCboomYZir1x9zl7vrIrtMu2Hefq1o7ATeMxd+Xb8ybM1C/ToSHy1ZgnOVxfRLH5a7K5dx 85MXfsNZbsLiga3J3sCjJQ==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qKZif-000383-0R; Sat, 15 Jul 2023 03:29:33 -0400 In-Reply-To: (message from Stefan Monnier on Fri, 14 Jul 2023 10:46:28 -0400) 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:265154 Archived-At: > From: Stefan Monnier > Cc: 64535@debbugs.gnu.org > Date: Fri, 14 Jul 2023 10:46:28 -0400 > > > I can suggest another solution: remove that code, but make sure > > long-line-threshold is reset to its default value locally in the > > buffer where prin1 is producing its output? Would that be more > > acceptable? > > Bug#2866 fundamentally had nothing to do with `prin1`. It was just > another instance of "Emacs freezes when encountering a long line". > > The patch installed back then fixed the problem for one particular (and > quite uncommon) way to end up with a long line. There are millions more > ways to get that result, as you know, many of them much more common. > > The only thing special about Bug#2866 is that it happened to be a case > where the long line was generated by our own code and where Handa > bothered to write a hack that kinda worked around the problem, leaving > all the many other ways to walk into that problem just as opened > as before. > > We now have a general way to solve the problem. I don't think it's > always absolutely perfect, but it's definitely good enough that we can > get rid of this odd hack. And those user who set `long-line-threshold` > to nil *and* happen to reproduce just the recipe in Bug#2866 would get > what they ask for, IMO. Is that a "no" to my proposal above?