From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#64535: 30.0.50; Spurious newlines in `prin1` output Date: Sat, 15 Jul 2023 11:20:50 -0400 Message-ID: References: <83v8etbrhe.fsf@gnu.org> <83cz0ufwan.fsf@gnu.org> <835y6leiod.fsf@gnu.org> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30023"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 64535@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 15 17:22:33 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 1qKh6N-0007YN-Se for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 15 Jul 2023 17:22:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qKh6G-0007UH-No; Sat, 15 Jul 2023 11:22:24 -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 1qKh68-0007Rw-0l for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2023 11:22:16 -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 1qKh5u-0006ic-7H for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2023 11:22:14 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qKh5u-000327-2A for bug-gnu-emacs@gnu.org; Sat, 15 Jul 2023 11:22:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 15 Jul 2023 15:22:02 +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.168943446211558 (code B ref 64535); Sat, 15 Jul 2023 15:22:02 +0000 Original-Received: (at 64535) by debbugs.gnu.org; 15 Jul 2023 15:21:02 +0000 Original-Received: from localhost ([127.0.0.1]:45797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKh4w-00030M-AM for submit@debbugs.gnu.org; Sat, 15 Jul 2023 11:21:02 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:55949) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qKh4s-0002zk-1s for 64535@debbugs.gnu.org; Sat, 15 Jul 2023 11:21:01 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id C03B980712; Sat, 15 Jul 2023 11:20:52 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 9AB9D8062B; Sat, 15 Jul 2023 11:20:51 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1689434451; bh=MilcXp+Pk0ExYc1WqOCWVEcH+0g7n3vy8FvH+Sg0/JU=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=agOrpwJYVqhMEyuJIS6szFzF7iz1wEPvXD4fANsqdnJ5jxXteY1VGjlLLR4gIcbTS d69uQeh85Vs5pRlxmwRAUYGIxpeHcVMfgD6H1bEbHkUorZ+1fowdyEY1AXhmb1Mbko w5owJ2ANw1DZxLwRVt7X3hbNmv9Ln+m4bAHYM81EzBerarV8EPIS5b+jRxhNVswRet zDTtfgQotNvZqDEpZo96fKCriYZgxDJLcjCb/nJCy/0bhqMZHzrx9YOPhEGlEs7eNn DyujbmJcVIbdFufv/iqBmujHXMNTgXY85Ne/e+VLJ7QV9jY3+5zzNvy6UmLIhsNlSC lI2WcwJiAAsVg== Original-Received: from pastel (unknown [108.175.230.17]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 7635812024D; Sat, 15 Jul 2023 11:20:51 -0400 (EDT) In-Reply-To: <835y6leiod.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 15 Jul 2023 10:29:54 +0300") 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:265217 Archived-At: >> > 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? It's saying that your proposal is to replace the current hack with another hack, so indeed: not interested. Stefan