From unknown Wed Jun 25 05:43:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19177: 25.0.50; pretty printer Resent-From: Leo Liu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Nov 2014 11:05:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19177 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 19177@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.141691348125048 (code B ref -1); Tue, 25 Nov 2014 11:05:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Nov 2014 11:04:41 +0000 Received: from localhost ([127.0.0.1]:44582 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XtDvE-0006Vv-Kr for submit@debbugs.gnu.org; Tue, 25 Nov 2014 06:04:41 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60230) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XtDvC-0006Vn-3k for submit@debbugs.gnu.org; Tue, 25 Nov 2014 06:04:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtDv2-0000me-LR for submit@debbugs.gnu.org; Tue, 25 Nov 2014 06:04:37 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,FREEMAIL_FROM, T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:34229) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtDv2-0000ma-Ih for submit@debbugs.gnu.org; Tue, 25 Nov 2014 06:04:28 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33668) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtDut-00041f-HJ for bug-gnu-emacs@gnu.org; Tue, 25 Nov 2014 06:04:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XtDuk-0000iT-Az for bug-gnu-emacs@gnu.org; Tue, 25 Nov 2014 06:04:19 -0500 Received: from mail-pd0-x230.google.com ([2607:f8b0:400e:c02::230]:54228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XtDuk-0000i6-3B for bug-gnu-emacs@gnu.org; Tue, 25 Nov 2014 06:04:10 -0500 Received: by mail-pd0-f176.google.com with SMTP id y10so366185pdj.21 for ; Tue, 25 Nov 2014 03:04:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=8ShL+qRnYHAk1FKss1h3lgnF3SAWr6fNfyL5lzR/jM8=; b=ssR+oxy82qvaFRdcFbwN7dQ6FLYuVcg7tAhyhWRIlppNFPoWD1CfM4fWZjNztdI92Z 7r8/dg+SRTK0O6EOuFJh7YHmNkrktNaOfi8kWqOr6l8Q4GTCVUiZbCBzPtnIMJRBWGfI D8C1IX0wJZN6nUgsQ6qeIu4SJfaQvDjzI9Q7dst2pMaPiWH1F7DwrUl0exb1xFnMwG1H 8t6fPJZ1wMyV+cbrO1FZJ9lYqaj2hqnp1XNxJ0jgVALHyPwZ3mLW5Q1Ray/vtNX6e53n ITDslikTYyvLN9/NLYxPYZIMFZoWOB+Qv3zs3idjdRP5kNZQQacBXq6+ULlGLJO0b/HM cH5g== X-Received: by 10.68.252.194 with SMTP id zu2mr4601612pbc.58.1416913448747; Tue, 25 Nov 2014 03:04:08 -0800 (PST) Received: from fortuna ([221.222.149.119]) by mx.google.com with ESMTPSA id fv4sm1183454pbd.47.2014.11.25.03.04.06 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 25 Nov 2014 03:04:08 -0800 (PST) From: Leo Liu Date: Tue, 25 Nov 2014 19:04:03 +0800 Message-ID: <8761e34k4c.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.0 (----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) The very limited pp.el can easily print hundreds of lines for what can be beautifully put into dozens of lines. This makes the pp'd text hard to read. In the following example, pp would print nearly 300 lines while SBCL's pprint only prints 50ish lines: ([1 ((env nil) (bound nil) (free nil)) ] (([1 ((env nil) (bound nil) (free nil)) ])) (([1 ((env nil) (bound (f tree)) (free nil)) ] (([1 ((env nil) (bound (f)) (free nil)) ]) ([1 ((env nil) (bound (tree)) (free nil)) ])) (([2 ((env (f tree)) (bound nil) (free (f tree))) ] (([2 ((env (f tree)) (bound nil) (free (tree))) ] (([2 ((env (f tree)) (bound nil) (free nil)) ] (([2 ((env (f tree)) (bound nil) (free nil)) ])) (([2 ((env (f tree)) (bound nil) (free nil)) ])))) (([2 ((env (f tree)) (bound nil) (free (tree))) ])))) (([3 ((env (f tree)) (bound nil) (free (f tree))) ] (([3 ((env (f tree)) (bound nil) (free nil)) ])) (([4 ((env (f tree)) (bound nil) (free (f tree))) ] (([4 ((env (f tree)) (bound nil) (free (f))) ])) (([4 ((env (f tree)) (bound nil) (free (tree))) ]))))) ([5 ((env (f tree)) (bound (gs tree1)) (free (f tree))) ] (([5 ((env (f tree)) (bound (gs)) (free nil)) ])) (([6 ((env (f gs tree)) (bound (tree1)) (free (f gs tree))) ] (([6 ((env (f gs tree)) (bound (tree1)) (free nil)) ])) (([6 ((env (f gs tree)) (bound nil) (free (f gs tree))) ] (([6 ((env (f gs tree)) (bound nil) (free nil)) ] (([6 ((env (f gs tree)) (bound nil) (free nil)) ])) (([6 ((env (f gs tree)) (bound nil) (free nil)) ])))) (([6 ((env (f gs tree)) (bound nil) (free (tree))) ] (([6 ((env (f gs tree)) (bound nil) (free nil)) ] (([6 ((env (f gs tree)) (bound nil) (free nil)) ])) (([6 ((env (f gs tree)) (bound nil) (free nil)) ])))) (([6 ((env (f gs tree)) (bound nil) (free (tree))) ]))) ([7 ((env (f gs tree)) (bound nil) (free (f gs))) ] (([7 ((env (f g gs tree)) (bound nil) (free (f g))) ] (([7 ((env (f g gs t tree)) (bound nil) (free (f t))) ] (([7 ((env (f g gs t tree)) (bound nil) (free nil)) ])) (([7 ((env (f g gs t tree)) (bound nil) (free (f))) ]) ([7 ((env (f g gs t tree)) (bound nil) (free (t))) ])))) (([7 ((env (f g gs tree)) (bound (t)) (free (g))) ] (([7 ((env nil) (bound (t)) (free nil)) ])) (([7 ((env (f g gs tree)) (bound nil) (free (g))) ])))))) (([8 ((env (f gs tree)) (bound (g)) (free (gs))) ] (([8 ((env nil) (bound (g)) (free nil)) ])) (([8 ((env (f gs tree)) (bound nil) (free (gs))) ]))))))))) ([9 ((env (f gs tree tree1)) (bound nil) (free (f tree tree1))) ] (([9 ((env (f gs tree tree1)) (bound nil) (free (f))) ])) (([9 ((env (f gs tree tree1)) (bound nil) (free (tree tree1))) ] (([9 ((env (f gs tree tree1)) (bound nil) (free nil)) ] (([9 ((env (f gs tree tree1)) (bound nil) (free nil)) ])) (([9 ((env (f gs tree tree1)) (bound nil) (free nil)) ])))) (([9 ((env (f gs tree tree1)) (bound nil) (free (tree))) ]) ([9 ((env (f gs tree tree1)) (bound nil) (free (tree1))) ]))))))))))))) From unknown Wed Jun 25 05:43:23 2025 X-Loop: help-debbugs@gnu.org Subject: bug#19177: 25.0.50; pretty printer Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Aug 2019 14:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19177 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Leo Liu Cc: 19177@debbugs.gnu.org Received: via spool by 19177-submit@debbugs.gnu.org id=B19177.156484165322504 (code B ref 19177); Sat, 03 Aug 2019 14:15:02 +0000 Received: (at 19177) by debbugs.gnu.org; 3 Aug 2019 14:14:13 +0000 Received: from localhost ([127.0.0.1]:59701 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htunV-0005qu-6n for submit@debbugs.gnu.org; Sat, 03 Aug 2019 10:14:13 -0400 Received: from quimby.gnus.org ([80.91.231.51]:48182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htunT-0005qm-N0 for 19177@debbugs.gnu.org; Sat, 03 Aug 2019 10:14:12 -0400 Received: from 77.18.62.220.tmi.telenormobil.no ([77.18.62.220] helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1htunQ-000569-81; Sat, 03 Aug 2019 16:14:10 +0200 From: Lars Ingebrigtsen References: <8761e34k4c.fsf@gmail.com> Date: Sat, 03 Aug 2019 16:14:07 +0200 In-Reply-To: <8761e34k4c.fsf@gmail.com> (Leo Liu's message of "Tue, 25 Nov 2014 19:04:03 +0800") Message-ID: <871ry2ibf4.fsf@mouse.gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: Leo Liu writes: > The very limited pp.el can easily print hundreds of lines for what can > be beautifully put into dozens of lines. This makes the pp'd text hard > to read. > > In the following example, pp would prin [...] Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Leo Liu writes: > The very limited pp.el can easily print hundreds of lines for what can > be beautifully put into dozens of lines. This makes the pp'd text hard > to read. > > In the following example, pp would print nearly 300 lines while SBCL's > pprint only prints 50ish lines: > > ([1 ((env nil) (bound nil) (free nil)) ] > (([1 ((env nil) (bound nil) (free nil)) ])) > (([1 ((env nil) (bound (f tree)) (free nil)) ] [...] > (([9 ((env (f gs tree tree1)) (bound nil) (free (tree))) ]) > ([9 ((env (f gs tree tree1)) (bound nil) (free (tree1))) > ]))))))))))))) (I'm going through old bug reports that unfortunately have not received any responses yet.) I see that SBCL's pretty-printer has its oddities, too -- the space before the "]" and a newline at one point... Anyway, `pp' prints arrays in pretty much the same way it prints lists, and I think this makes sense, and it pretty readable. (If a bit verbose.) So I'm closing this bug report as a "wontfix". -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 03 10:14:19 2019 Received: (at control) by debbugs.gnu.org; 3 Aug 2019 14:14:19 +0000 Received: from localhost ([127.0.0.1]:59704 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htunb-0005rE-FP for submit@debbugs.gnu.org; Sat, 03 Aug 2019 10:14:19 -0400 Received: from quimby.gnus.org ([80.91.231.51]:48196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1htunZ-0005r6-AQ for control@debbugs.gnu.org; Sat, 03 Aug 2019 10:14:17 -0400 Received: from 77.18.62.220.tmi.telenormobil.no ([77.18.62.220] helo=sandy) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1htunW-00056G-Oc for control@debbugs.gnu.org; Sat, 03 Aug 2019 16:14:16 +0200 Date: Sat, 03 Aug 2019 16:14:14 +0200 Message-Id: <87zhkqgwuh.fsf@mouse.gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #19177 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: tags 19177 + wontfix quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.0 TVD_RCVD_IP Message was received from an IP address -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) tags 19177 + wontfix quit From debbugs-submit-bounces@debbugs.gnu.org Fri Aug 23 01:32:13 2019 Received: (at control) by debbugs.gnu.org; 23 Aug 2019 05:32:13 +0000 Received: from localhost ([127.0.0.1]:38907 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i12BJ-0004ga-CN for submit@debbugs.gnu.org; Fri, 23 Aug 2019 01:32:13 -0400 Received: from quimby.gnus.org ([80.91.231.51]:40862) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i12BH-0004gJ-Vo for control@debbugs.gnu.org; Fri, 23 Aug 2019 01:32:12 -0400 Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie) by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i12BF-0004Bc-Fe for control@debbugs.gnu.org; Fri, 23 Aug 2019 07:32:11 +0200 Date: Fri, 23 Aug 2019 07:32:09 +0200 Message-Id: <871rxce9ba.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #19177 X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see @@CONTACT_ADDRESS@@ for details. Content preview: close 19177 quit Content analysis details: (-2.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) close 19177 quit