all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: npostavs@users.sourceforge.net
To: sindikat@mail36.net (sindikat@mail36.net)
Cc: 18012@debbugs.gnu.org
Subject: bug#18012: 24.3; Can't print a huge list structure in IELM
Date: Mon, 08 Aug 2016 21:47:30 -0400	[thread overview]
Message-ID: <87oa52n26l.fsf@users.sourceforge.net> (raw)
In-Reply-To: <8738e45s8x.fsf@mail36.net> (sindikat@mail36.net's message of "Mon, 14 Jul 2014 13:11:58 +0600")

severity 18012 minor
quit

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)

It seems that the circularity check when print-circle is nil stops at a
depth of 200.

(prin1 (nestify (number-sequence 1 200))) ;=> (error "Apparently circular structure being printed")

Setting print-circle to t makes this (and printing for ielm) work fine.
Maybe ielm should bind print-circle to t always?





  reply	other threads:[~2016-08-09  1:47 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 [this message]
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

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=87oa52n26l.fsf@users.sourceforge.net \
    --to=npostavs@users.sourceforge.net \
    --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.