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: Sun, 09 Jul 2023 08:09:49 +0300 Message-ID: <83v8etbrhe.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10251"; 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 Sun Jul 09 07:10:32 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 1qIMgp-0002VP-R5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 09 Jul 2023 07:10:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qIMgU-00089K-8O; Sun, 09 Jul 2023 01:10:10 -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 1qIMgR-00088b-Jm for bug-gnu-emacs@gnu.org; Sun, 09 Jul 2023 01:10:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qIMgM-0002KY-Fe for bug-gnu-emacs@gnu.org; Sun, 09 Jul 2023 01:10:07 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qIMgL-0004mo-Um for bug-gnu-emacs@gnu.org; Sun, 09 Jul 2023 01:10: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: Sun, 09 Jul 2023 05:10: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.168887939418367 (code B ref 64535); Sun, 09 Jul 2023 05:10:01 +0000 Original-Received: (at 64535) by debbugs.gnu.org; 9 Jul 2023 05:09:54 +0000 Original-Received: from localhost ([127.0.0.1]:45542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qIMgC-0004m8-Eu for submit@debbugs.gnu.org; Sun, 09 Jul 2023 01:09:54 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qIMg9-0004ls-Gy for 64535@debbugs.gnu.org; Sun, 09 Jul 2023 01:09:51 -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 1qIMg3-0002FJ-Fk; Sun, 09 Jul 2023 01:09:43 -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=wHPpbL+/ppAXa1G8MssEneUjJRWN0k7auAC0FlOae3E=; b=fUuFpw2dEu/P M2MR08gHgtZhGxjt/p80AbjjlkJlzyxu6W1E8roJYeZKq32iEW7hXvgu0PgVuyNhzqbUnZkjia0zm pXuXf+R6QDa0NWzwXlS0ivPv7vPagtivzrNrmRFZAsva4uosCOYAfEF1So1AIjiZHEeEKoFY908Sk 71raVF+9vuA80hCl581Oy42kyNXGC3PRZFo4rbcuLXVP9Cjwd8BKWEmK7hpz9WAhDIf040Q2kbym2 gWrdcw8zJMXua/hDYwXT03pDhrGaSzBvXMjsb5cbN/j6lEuaCUUSgV7cnMVndOHVidCbxRhsWxLbR G/S9e4y467/wqV2DnS23Mw==; 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 1qIMg2-0003k2-Jp; Sun, 09 Jul 2023 01:09:43 -0400 In-Reply-To: (bug-gnu-emacs@gnu.org) 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:264806 Archived-At: > Date: Sat, 08 Jul 2023 15:19:13 -0400 > From: Stefan Monnier via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > `prin1` never inserts newlines unless they're within strings (and that > can be controlled with `print-escape-newlines`), right? Right? > > Nope: it does insert newlines inside char-table when reaching the 3rd > level of subtables. This was done to work around the long lines problem > in redisplay (bug#2866), but it's far from the only case where `prin1` > can emit a long line, and we've significantly improved our handling of > long lines. > > Can we get rid of this quirk now, please? I'm okay with getting rid of it, with two conditions: . removing newline insertion in the scenario of bug#2866 leaves Emacs sufficiently performant, even in the unoptimized build, and . we will still insert a newline if long-line-threshold is nil IOW, I don't want us to bring back regressions as result of this cleanup. Thanks.