GNU bug report logs -
#18012
24.3; Can't print a huge list structure in IELM
Previous Next
Full log
Message #22 received at 18012 <at> debbugs.gnu.org (full text, mbox):
sindikat <at> mail36.net (sindikat <at> 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
This bug report was last modified 3 years and 319 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.