all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: sindikat@mail36.net
Cc: 18012@debbugs.gnu.org
Subject: bug#18012: 24.3; Can't print a huge list structure in IELM
Date: Sat, 04 Sep 2021 10:40:57 +0200	[thread overview]
Message-ID: <87o898raw6.fsf@gnus.org> (raw)
In-Reply-To: <8738e45s8x.fsf@mail36.net> (sindikat@mail36.net's message of "Mon, 14 Jul 2014 13:11:58 +0600")

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 ‘max-lisp-eval-depth’") [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.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





      parent reply	other threads:[~2021-09-04  8:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-14  7:11 bug#18012: 24.3; Can't print a huge list structure in IELM sindikat
2016-08-09  1:47 ` npostavs
2018-04-12 13:32   ` Basil L. Contovounesios
2018-04-12 13:44     ` Basil L. Contovounesios
2018-04-12 14:21     ` Noam Postavsky
2021-09-04  8:40 ` Lars Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87o898raw6.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=18012@debbugs.gnu.org \
    --cc=sindikat@mail36.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.