From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#18012: 24.3; Can't print a huge list structure in IELM Date: Sat, 04 Sep 2021 10:40:57 +0200 Message-ID: <87o898raw6.fsf@gnus.org> References: <8738e45s8x.fsf@mail36.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7028"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 18012@debbugs.gnu.org To: sindikat@mail36.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Sep 04 10:42:11 2021 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 1mMRFa-0001fW-Q4 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Sep 2021 10:42:10 +0200 Original-Received: from localhost ([::1]:38852 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mMRFZ-0004vW-CW for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 04 Sep 2021 04:42:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43562) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mMRFS-0004v9-3W for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2021 04:42:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35009) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mMRFR-0007WK-So for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2021 04:42:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mMRFR-000511-Mx for bug-gnu-emacs@gnu.org; Sat, 04 Sep 2021 04:42:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 04 Sep 2021 08:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18012 X-GNU-PR-Package: emacs Original-Received: via spool by 18012-submit@debbugs.gnu.org id=B18012.163074487019190 (code B ref 18012); Sat, 04 Sep 2021 08:42:01 +0000 Original-Received: (at 18012) by debbugs.gnu.org; 4 Sep 2021 08:41:10 +0000 Original-Received: from localhost ([127.0.0.1]:46552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMREc-0004zS-GE for submit@debbugs.gnu.org; Sat, 04 Sep 2021 04:41:10 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:39108) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMREa-0004z8-VW for 18012@debbugs.gnu.org; Sat, 04 Sep 2021 04:41:09 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID :In-Reply-To:Date:References:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=4OmwPbRtB3g40dvgNAYHwPdbP9B4D7SZMGp3NYafbWg=; b=XQqCCYezg+d36AySVasW3BAfFH qkvOkp2L08HrX4gyWVsgzWHx/ff98O4fuXArrg5mvF2BY5CvxUl54V+l4Ji2L8+L7MsbxQLK3uBMU HCuGIDKN8Wg3y5ykdOxYjRVfnJHnHhZ6KDx50FMCPvnxh03xLDJal5s6NKFj+ZCiK0aQ=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mMREQ-0007Ud-4N; Sat, 04 Sep 2021 10:41:01 +0200 In-Reply-To: <8738e45s8x.fsf@mail36.net> (sindikat@mail36.net's message of "Mon, 14 Jul 2014 13:11:58 +0600") 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" Xref: news.gmane.io gmane.emacs.bugs:213401 Archived-At: sindikat@mail36.net (sindikat@mail36.net) writes: > I have a function that creates a nested list in the form (x (x (x (x > (...))))) arbitrarily deep: > > (defun nestify (xs) > (cl-reduce (lambda (x y) (if y (list x y) (list x))) xs :from-end t > :initial-value nil)) > > In IELM when I try to call it on a sufficiently big list, it crashes > with an error: > > ELISP> (nestify (number-sequence 1 1000)) > *** IELM Error *** Error during pretty-printing (bug in pp) > > Googling the above error, including on Debbugs.gnu.org and site-only > search on gnu.org haven't revealed anything. zrgrep-ing showed the > string "Error during pretty-printing" is in function `ielm-eval-input` > in file `ielm.el`. Thus, I report this bug. (I'm going through old bug reports that unfortunately weren't resolved at the time.) This has changed a bit since this was reported. It now says: ELISP> (nestify (number-sequence 1 1000)) *** IELM Error *** Error during pretty-printing (bug in pp): (scan-error "= Unbalanced parentheses" 1 385) and a message in the echo area saying cl-prin1: (error "Lisp nesting exceeds =E2=80=98max-lisp-eval-depth=E2=80= =99") [6 times] I've now removed the confusing (and misleading) "(bug in pp)" from the error message, and but the rest seems pretty much correct (when dealing with things that Emacs can't print because of issues like this), so I'm closing this bug report. --=20 (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no