From unknown Sat Aug 16 11:37:01 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#18012 <18012@debbugs.gnu.org> To: bug#18012 <18012@debbugs.gnu.org> Subject: Status: 24.3; Can't print a huge list structure in IELM Reply-To: bug#18012 <18012@debbugs.gnu.org> Date: Sat, 16 Aug 2025 18:37:01 +0000 retitle 18012 24.3; Can't print a huge list structure in IELM reassign 18012 emacs submitter 18012 sindikat@mail36.net (sindikat@mail36.net) severity 18012 minor thanks From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 14 03:12:54 2014 Received: (at submit) by debbugs.gnu.org; 14 Jul 2014 07:12:54 +0000 Received: from localhost ([127.0.0.1]:54141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X6aRR-00086k-6n for submit@debbugs.gnu.org; Mon, 14 Jul 2014 03:12:54 -0400 Received: from eggs.gnu.org ([208.118.235.92]:57340) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X6aRM-00086S-N1 for submit@debbugs.gnu.org; Mon, 14 Jul 2014 03:12:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X6aRC-0006e2-Gc for submit@debbugs.gnu.org; Mon, 14 Jul 2014 03:12:43 -0400 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 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:59261) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6aRC-0006dy-Cw for submit@debbugs.gnu.org; Mon, 14 Jul 2014 03:12:38 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6aR7-0006QU-Sh for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2014 03:12:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X6aR3-0006X4-6B for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2014 03:12:33 -0400 Received: from rage.so36.net ([83.223.73.211]:46997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X6aR2-0006U5-OX for bug-gnu-emacs@gnu.org; Mon, 14 Jul 2014 03:12:29 -0400 Received: from amavis.rage.so36.net (localhost [127.0.0.1]) by rage.so36.net (Postfix) with ESMTP id 9CF36402A6 for ; Mon, 14 Jul 2014 09:12:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at rage.so36.net Received: from rage.so36.net ([127.0.0.1]) by amavis.rage.so36.net (rage.so36.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id hUv9LmPcXm9l for ; Mon, 14 Jul 2014 09:12:24 +0200 (CEST) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sindikat@mail36.net) by rage.so36.net (Postfix) with ESMTPSA id 8723940209 for ; Mon, 14 Jul 2014 09:12:20 +0200 (CEST) From: sindikat@mail36.net (sindikat@mail36.net) To: bug-gnu-emacs@gnu.org Subject: 24.3; Can't print a huge list structure in IELM Date: Mon, 14 Jul 2014 13:11:58 +0600 Message-ID: <8738e45s8x.fsf@mail36.net> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x 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: -5.0 (-----) X-Debbugs-Envelope-To: submit 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: -5.0 (-----) 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. In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.8.4) of 2013-09-27 on trouble, modified by Debian Windowing system distributor `The X.Org Foundation', version 11.0.11403000 System Description: LMDE Cinnamon Edition Configured using: `configure '--build' 'x86_64-linux-gnu' '--build' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var/lib' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs24:/etc/emacs:/usr/local/share/emacs/24.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.3/site-lisp:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/x86_64-linux-gnu' '--with-x=yes' '--with-x-toolkit=gtk3' '--with-toolkit-scroll-bars' 'build_alias=x86_64-linux-gnu' 'CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall' 'LDFLAGS=-Wl,-z,relro' 'CPPFLAGS=-D_FORTIFY_SOURCE=2'' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Info Minor modes in effect: shell-dirtrack-mode: t icomplete-mode: t global-hl-line-mode: t show-paren-mode: t ido-everywhere: t keyfreq-autosave-mode: t keyfreq-mode: t delete-selection-mode: t recentf-mode: t ergoemacs-mode: t global-undo-tree-mode: t undo-tree-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t buffer-read-only: t column-number-mode: t line-number-mode: t global-visual-line-mode: t visual-line-mode: t transient-mark-mode: t Recent input: q SPC z z z SPC " a r s t " ) ( p r i n c SPC z z z z ) M-h ( p r i n c SPC M-H ) M-h ( p r i n c SPC M-H ) ( s e t q SPC z z z y y y SPC " a r s t " ) ( s e t q SPC z z z z SPC y y y ) M-l ' ( p r i n c SPC z z z ) M-h M-y M-s M-r u d m e l i s p M-r f f u n c a l l M-r q SPC SPC SPC SPC SPC SPC SPC M-r i n t e r n M-h C-M-SPC ( i n e r t e r n SPC 1 ) M-n " a r s t " M-h M-H M-n M-s y y y M-H M-h ( ( M-H ) M-h M-y M-h M-i f u n c a l l SPC M-H SPC SPC M-r ( g e t SPC y y y ) M-n SPC y y y M-r SPC SPC SPC SPC SPC SPC u u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u M-u d m e l i s p M-E M-a e m a c s - r e p M-SPC M-h r e p o r t - e m Recent messages: History item: 1 arstarst History item: 1 arstarstarst History item: 1 yyy History item: 1 Type "q" in help window to restore its previous buffer. Mark set History item: 1 [5 times] Load-path shadows: ~/.emacs.d/pymacs hides /home/sindikat/.emacs.d/elpa/pymacs-0.25/pymacs /home/sindikat/.emacs.d/elpa/quack-20130126.1623/quack hides /usr/share/emacs24/site-lisp/emacs-goodies-el/quack /home/sindikat/.emacs.d/elpa/color-theme-20080305.34/color-theme hides /usr/share/emacs24/site-lisp/emacs-goodies-el/color-theme /home/sindikat/.emacs.d/elpa/markdown-mode-20131210.700/markdown-mode hides /usr/share/emacs24/site-lisp/emacs-goodies-el/markdown-mode /usr/share/emacs/24.3/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup ~/.emacs.d/custom hides /usr/share/emacs/24.3/lisp/custom /home/sindikat/.emacs.d/elpa/json-1.2/json hides /usr/share/emacs/24.3/lisp/json /usr/share/emacs24/site-lisp/dictionaries-common/ispell hides /usr/share/emacs/24.3/lisp/textmodes/ispell /usr/share/emacs24/site-lisp/dictionaries-common/flyspell hides /usr/share/emacs/24.3/lisp/textmodes/flyspell /home/sindikat/.emacs.d/elpa/ruby-mode-1.1/ruby-mode hides /usr/share/emacs/24.3/lisp/progmodes/ruby-mode /home/sindikat/.emacs.d/elpa/org-20140707/org-pcomplete hides /usr/share/emacs/24.3/lisp/org/org-pcomplete /home/sindikat/.emacs.d/elpa/org-20140707/ob-table hides /usr/share/emacs/24.3/lisp/org/ob-table /home/sindikat/.emacs.d/elpa/org-20140707/ob-css hides /usr/share/emacs/24.3/lisp/org/ob-css /home/sindikat/.emacs.d/elpa/org-20140707/ob-haskell hides /usr/share/emacs/24.3/lisp/org/ob-haskell /home/sindikat/.emacs.d/elpa/org-20140707/org-indent hides /usr/share/emacs/24.3/lisp/org/org-indent /home/sindikat/.emacs.d/elpa/org-20140707/org-agenda hides /usr/share/emacs/24.3/lisp/org/org-agenda /home/sindikat/.emacs.d/elpa/org-20140707/ob-C hides /usr/share/emacs/24.3/lisp/org/ob-C /home/sindikat/.emacs.d/elpa/org-20140707/org-docview hides /usr/share/emacs/24.3/lisp/org/org-docview /home/sindikat/.emacs.d/elpa/org-20140707/org-timer hides /usr/share/emacs/24.3/lisp/org/org-timer /home/sindikat/.emacs.d/elpa/org-20140707/ob-calc hides /usr/share/emacs/24.3/lisp/org/ob-calc /home/sindikat/.emacs.d/elpa/org-20140707/ob-org hides /usr/share/emacs/24.3/lisp/org/ob-org /home/sindikat/.emacs.d/elpa/org-20140707/ob-gnuplot hides /usr/share/emacs/24.3/lisp/org/ob-gnuplot /home/sindikat/.emacs.d/elpa/org-20140707/org-info hides /usr/share/emacs/24.3/lisp/org/org-info /home/sindikat/.emacs.d/elpa/org-20140707/ob-asymptote hides /usr/share/emacs/24.3/lisp/org/ob-asymptote /home/sindikat/.emacs.d/elpa/org-20140707/ob-mscgen hides /usr/share/emacs/24.3/lisp/org/ob-mscgen /home/sindikat/.emacs.d/elpa/org-20140707/org-mouse hides /usr/share/emacs/24.3/lisp/org/org-mouse /home/sindikat/.emacs.d/elpa/org-20140707/org-inlinetask hides /usr/share/emacs/24.3/lisp/org/org-inlinetask /home/sindikat/.emacs.d/elpa/org-20140707/ob-maxima hides /usr/share/emacs/24.3/lisp/org/ob-maxima /home/sindikat/.emacs.d/elpa/org-20140707/org-w3m hides /usr/share/emacs/24.3/lisp/org/org-w3m /home/sindikat/.emacs.d/elpa/org-20140707/ob-keys hides /usr/share/emacs/24.3/lisp/org/ob-keys /home/sindikat/.emacs.d/elpa/org-20140707/ob-awk hides /usr/share/emacs/24.3/lisp/org/ob-awk /home/sindikat/.emacs.d/elpa/org-20140707/ob-io hides /usr/share/emacs/24.3/lisp/org/ob-io /home/sindikat/.emacs.d/elpa/org-20140707/ob-dot hides /usr/share/emacs/24.3/lisp/org/ob-dot /home/sindikat/.emacs.d/elpa/org-20140707/org-mhe hides /usr/share/emacs/24.3/lisp/org/org-mhe /home/sindikat/.emacs.d/elpa/org-20140707/ob-ditaa hides /usr/share/emacs/24.3/lisp/org/ob-ditaa /home/sindikat/.emacs.d/elpa/org-20140707/org-src hides /usr/share/emacs/24.3/lisp/org/org-src /home/sindikat/.emacs.d/elpa/org-20140707/ob-latex hides /usr/share/emacs/24.3/lisp/org/ob-latex /home/sindikat/.emacs.d/elpa/org-20140707/org hides /usr/share/emacs/24.3/lisp/org/org /home/sindikat/.emacs.d/elpa/org-20140707/ob-ruby hides /usr/share/emacs/24.3/lisp/org/ob-ruby /home/sindikat/.emacs.d/elpa/org-20140707/org-irc hides /usr/share/emacs/24.3/lisp/org/org-irc /home/sindikat/.emacs.d/elpa/org-20140707/org-protocol hides /usr/share/emacs/24.3/lisp/org/org-protocol /home/sindikat/.emacs.d/elpa/org-20140707/org-feed hides /usr/share/emacs/24.3/lisp/org/org-feed /home/sindikat/.emacs.d/elpa/org-20140707/org-rmail hides /usr/share/emacs/24.3/lisp/org/org-rmail /home/sindikat/.emacs.d/elpa/org-20140707/ob-ref hides /usr/share/emacs/24.3/lisp/org/ob-ref /home/sindikat/.emacs.d/elpa/org-20140707/ob hides /usr/share/emacs/24.3/lisp/org/ob /home/sindikat/.emacs.d/elpa/org-20140707/org-crypt hides /usr/share/emacs/24.3/lisp/org/org-crypt /home/sindikat/.emacs.d/elpa/org-20140707/ob-screen hides /usr/share/emacs/24.3/lisp/org/ob-screen /home/sindikat/.emacs.d/elpa/org-20140707/org-compat hides /usr/share/emacs/24.3/lisp/org/org-compat /home/sindikat/.emacs.d/elpa/org-20140707/org-gnus hides /usr/share/emacs/24.3/lisp/org/org-gnus /home/sindikat/.emacs.d/elpa/org-20140707/ob-eval hides /usr/share/emacs/24.3/lisp/org/ob-eval /home/sindikat/.emacs.d/elpa/org-20140707/ob-shen hides /usr/share/emacs/24.3/lisp/org/ob-shen /home/sindikat/.emacs.d/elpa/org-20140707/ob-python hides /usr/share/emacs/24.3/lisp/org/ob-python /home/sindikat/.emacs.d/elpa/org-20140707/org-entities hides /usr/share/emacs/24.3/lisp/org/org-entities /home/sindikat/.emacs.d/elpa/org-20140707/org-faces hides /usr/share/emacs/24.3/lisp/org/org-faces /home/sindikat/.emacs.d/elpa/org-20140707/ob-emacs-lisp hides /usr/share/emacs/24.3/lisp/org/ob-emacs-lisp /home/sindikat/.emacs.d/elpa/org-20140707/ob-comint hides /usr/share/emacs/24.3/lisp/org/ob-comint /home/sindikat/.emacs.d/elpa/org-20140707/ob-octave hides /usr/share/emacs/24.3/lisp/org/ob-octave /home/sindikat/.emacs.d/elpa/org-20140707/org-clock hides /usr/share/emacs/24.3/lisp/org/org-clock /home/sindikat/.emacs.d/elpa/org-20140707/org-ctags hides /usr/share/emacs/24.3/lisp/org/org-ctags /home/sindikat/.emacs.d/elpa/org-20140707/ob-scheme hides /usr/share/emacs/24.3/lisp/org/ob-scheme /home/sindikat/.emacs.d/elpa/org-20140707/ob-sqlite hides /usr/share/emacs/24.3/lisp/org/ob-sqlite /home/sindikat/.emacs.d/elpa/org-20140707/org-table hides /usr/share/emacs/24.3/lisp/org/org-table /home/sindikat/.emacs.d/elpa/org-20140707/ob-sql hides /usr/share/emacs/24.3/lisp/org/ob-sql /home/sindikat/.emacs.d/elpa/org-20140707/org-datetree hides /usr/share/emacs/24.3/lisp/org/org-datetree /home/sindikat/.emacs.d/elpa/org-20140707/org-list hides /usr/share/emacs/24.3/lisp/org/org-list /home/sindikat/.emacs.d/elpa/org-20140707/ob-ledger hides /usr/share/emacs/24.3/lisp/org/ob-ledger /home/sindikat/.emacs.d/elpa/org-20140707/org-bibtex hides /usr/share/emacs/24.3/lisp/org/org-bibtex /home/sindikat/.emacs.d/elpa/org-20140707/org-bbdb hides /usr/share/emacs/24.3/lisp/org/org-bbdb /home/sindikat/.emacs.d/elpa/org-20140707/ob-plantuml hides /usr/share/emacs/24.3/lisp/org/ob-plantuml /home/sindikat/.emacs.d/elpa/org-20140707/ob-lisp hides /usr/share/emacs/24.3/lisp/org/ob-lisp /home/sindikat/.emacs.d/elpa/org-20140707/ob-exp hides /usr/share/emacs/24.3/lisp/org/ob-exp /home/sindikat/.emacs.d/elpa/org-20140707/ob-fortran hides /usr/share/emacs/24.3/lisp/org/ob-fortran /home/sindikat/.emacs.d/elpa/org-20140707/ob-sass hides /usr/share/emacs/24.3/lisp/org/ob-sass /home/sindikat/.emacs.d/elpa/org-20140707/org-footnote hides /usr/share/emacs/24.3/lisp/org/org-footnote /home/sindikat/.emacs.d/elpa/org-20140707/org-attach hides /usr/share/emacs/24.3/lisp/org/org-attach /home/sindikat/.emacs.d/elpa/org-20140707/org-element hides /usr/share/emacs/24.3/lisp/org/org-element /home/sindikat/.emacs.d/elpa/org-20140707/ob-ocaml hides /usr/share/emacs/24.3/lisp/org/ob-ocaml /home/sindikat/.emacs.d/elpa/org-20140707/ob-java hides /usr/share/emacs/24.3/lisp/org/ob-java /home/sindikat/.emacs.d/elpa/org-20140707/org-macs hides /usr/share/emacs/24.3/lisp/org/org-macs /home/sindikat/.emacs.d/elpa/org-20140707/org-mobile hides /usr/share/emacs/24.3/lisp/org/org-mobile /home/sindikat/.emacs.d/elpa/org-20140707/org-install hides /usr/share/emacs/24.3/lisp/org/org-install /home/sindikat/.emacs.d/elpa/org-20140707/ob-clojure hides /usr/share/emacs/24.3/lisp/org/ob-clojure /home/sindikat/.emacs.d/elpa/org-20140707/org-eshell hides /usr/share/emacs/24.3/lisp/org/org-eshell /home/sindikat/.emacs.d/elpa/org-20140707/ob-matlab hides /usr/share/emacs/24.3/lisp/org/ob-matlab /home/sindikat/.emacs.d/elpa/org-20140707/org-habit hides /usr/share/emacs/24.3/lisp/org/org-habit /home/sindikat/.emacs.d/elpa/org-20140707/ob-lob hides /usr/share/emacs/24.3/lisp/org/ob-lob /home/sindikat/.emacs.d/elpa/org-20140707/ob-perl hides /usr/share/emacs/24.3/lisp/org/ob-perl /home/sindikat/.emacs.d/elpa/org-20140707/org-id hides /usr/share/emacs/24.3/lisp/org/org-id /home/sindikat/.emacs.d/elpa/org-20140707/org-archive hides /usr/share/emacs/24.3/lisp/org/org-archive /home/sindikat/.emacs.d/elpa/org-20140707/org-version hides /usr/share/emacs/24.3/lisp/org/org-version /home/sindikat/.emacs.d/elpa/org-20140707/ob-scala hides /usr/share/emacs/24.3/lisp/org/ob-scala /home/sindikat/.emacs.d/elpa/org-20140707/org-plot hides /usr/share/emacs/24.3/lisp/org/org-plot /home/sindikat/.emacs.d/elpa/org-20140707/org-capture hides /usr/share/emacs/24.3/lisp/org/org-capture /home/sindikat/.emacs.d/elpa/org-20140707/ob-sh hides /usr/share/emacs/24.3/lisp/org/ob-sh /home/sindikat/.emacs.d/elpa/org-20140707/ob-tangle hides /usr/share/emacs/24.3/lisp/org/ob-tangle /home/sindikat/.emacs.d/elpa/org-20140707/ob-picolisp hides /usr/share/emacs/24.3/lisp/org/ob-picolisp /home/sindikat/.emacs.d/elpa/org-20140707/ob-R hides /usr/share/emacs/24.3/lisp/org/ob-R /home/sindikat/.emacs.d/elpa/org-20140707/ob-lilypond hides /usr/share/emacs/24.3/lisp/org/ob-lilypond /home/sindikat/.emacs.d/elpa/org-20140707/ob-js hides /usr/share/emacs/24.3/lisp/org/ob-js /home/sindikat/.emacs.d/elpa/org-20140707/org-colview hides /usr/share/emacs/24.3/lisp/org/org-colview /home/sindikat/.emacs.d/elpa/org-20140707/org-loaddefs hides /usr/share/emacs/24.3/lisp/org/org-loaddefs ~/.emacs.d/secrets hides /usr/share/emacs/24.3/lisp/net/secrets Features: (shadow emacsbug misearch multi-isearch dired-aux parse-time sort mule-util shr browse-url mm-archive mail-extr gnus-async gnus-bcklg gnus-dup gnus-ml thingatpt org-element org-w3m org-wl org-vm org-rmail org-mhe org-mew org-irc org-jsinfo org-infojs org-html org-exp org-exp-blocks org-info org-gnus org-docview doc-view image-mode org-bibtex bibtex org-bbdb bookmark haskell-process haskell-navigate-imports haskell-presentation-mode haskell-compile haskell-str haskell-session haskell-indentation haskell-font-lock dired inf-haskell haskell-cabal haskell-utils haskell-decl-scan imenu haskell-mode haskell-string haskell-sort-imports haskell-align-imports haskell-compat haskell-complete-module cl flymake dabbrev compile jka-compr face-remap gnutls network-stream starttls tls pop3 nndraft nnmh nnfolder nnml gnus-agent gnus-srvr gnus-score score-mode nnvirtual gnus-msg gnus-art mm-uu mml2015 epg-config mm-view mml-smime smime dig mailcap nntp gnus-cache gnus-sum nnoo gnus-group gnus-undo nnmail mail-source gnus-start gnus-spec gnus-int gnus-range message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader gnus-win gnus gnus-ems nnheader view pcmpl-unix shell debug ielm pp server eldoc icomplete hl-line paren ido ropemacs pymacs keyfreq web-mode disp-table uniquify cl-macs gv org-id org-mobile org-agenda org org-macro org-footnote org-pcomplete pcomplete org-list org-faces org-entities noutline outline org-version ob-scheme geiser ob-emacs-lisp ob ob-tangle ob-ref ob-lob ob-table ob-exp org-src ob-keys ob-comint comint ansi-color ring ob-core ob-eval org-compat org-macs org-loaddefs format-spec find-func cal-menu calendar cal-loaddefs smtpmail auth-source gnus-util time-date password-cache sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils wombat-theme suspend app f s dash ergoemacs-macros printing ps-print ps-def lpr ergoemacs-menus delsel recentf tree-widget ergoemacs-mode two-column ergoemacs-advices warnings cus-edit cus-start cus-load wid-edit ergoemacs-extras ergoemacs-shortcuts ergoemacs-translate descr-text help-mode ergoemacs-functions ergoemacs-modal ergoemacs-unbind ergoemacs-themes advice help-fns cl-lib advice-preload ergoemacs-theme-engine eieio-base eieio byte-opt bytecomp byte-compile cconv ergoemacs-layouts undo-tree diff color-theme-autoloads ergoemacs-mode-autoloads f-autoloads dash-autoloads geiser-autoloads ghc-autoloads ghci-completion-autoloads haskell-mode-autoloads edmacro kmacro helm-autoloads ht-autoloads jinja2-mode-autoloads json-autoloads markdown-mode-autoloads monokai-theme-autoloads org-autoloads info easymenu pymacs-autoloads quack-autoloads racket-mode-autoloads request-autoloads rinari-autoloads jump-autoloads inflections-autoloads findr-autoloads ruby-compilation-autoloads inf-ruby-autoloads ruby-mode-autoloads s-autoloads sublime-themes-autoloads ttl-mode-autoloads undo-tree-autoloads unidecode-autoloads finder-inf web-mode-autoloads package emacs-goodies-el emacs-goodies-custom emacs-goodies-loaddefs easy-mmode tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Mon Aug 08 21:47:31 2016 Received: (at 18012) by debbugs.gnu.org; 9 Aug 2016 01:47:31 +0000 Received: from localhost ([127.0.0.1]:60526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWw8h-0006OF-JR for submit@debbugs.gnu.org; Mon, 08 Aug 2016 21:47:31 -0400 Received: from mail-it0-f50.google.com ([209.85.214.50]:38468) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bWw8f-0006Nv-55; Mon, 08 Aug 2016 21:47:29 -0400 Received: by mail-it0-f50.google.com with SMTP id x130so1639868ite.1; Mon, 08 Aug 2016 18:47:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=DoFLwu4Euq8DBf7a9U48M18yXq62eNyv/hoyNUykevo=; b=wROciGcCUWfvM0a5cJVeQwiGFHwAfNi5tL1vnL9l/2xi5Zf65d+KxidrUgyijqyC6l ZZOcqzaoPqM3yJlkU2ZT4qeylZ6hPdMZK30Yyb9cTn5S14XkSViRfrBxcbsRwzNIKPao SHsWBD+mczGOLexWp3XUkugm5HyPF8/7VSCVIRgArnZI5oX2TSrx4aXnxLX6okvV2Fbx gNt0S+rc1u7TmWtCIKWtkIzXcbyFutKBU97fj1UoBcBHs9sXB/3P7LG6/lRT77uO8AM3 /xlhcnR+U19WcD+Ba2PNYL6ONIzg2YFUz+g9Hj09y8OewawCpi5mgJwbeFNIew/1kLdu mb7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:references:date :in-reply-to:message-id:user-agent:mime-version; bh=DoFLwu4Euq8DBf7a9U48M18yXq62eNyv/hoyNUykevo=; b=CBWrZI22uehlEfIZgs7p+Th+iJ5FpqjT7MEdLNLxHUIm+Rkmj/HEJV3ZiLDFHEX+zx xCXFdoFfZunEQGsDCXISCNk6BqvEF5ZCtNO/+SNBhlg3/PEnemHWoM7vfHiuiVKPrm/a Rp1I+DxsKA+3wi1NIvWlWPj8qZhw0KGep6AH3fgcv2TAahOYrD8+Wjr5WBZ+jhu9kK1S ZGynI73UC0Lqm6cWf1FfVXFjUfU2U/wwUDmGl2pl5Qd8n5gtAON2hNrQLPEgWUdcfJz5 lMcEwKIaUeXtqCdUN26iWOk4sP3VbvKjOEDGKu0HwpLjZXIMRALZNNAknoUXfxxFVXWk bFGQ== X-Gm-Message-State: AEkoouv800ZOgSVCHkmu1Lqcyurav4uOToqucVai6WntpdehXP60DdkecynFYnye3CKM3g== X-Received: by 10.36.31.149 with SMTP id d143mr22114541itd.87.1470707243603; Mon, 08 Aug 2016 18:47:23 -0700 (PDT) Received: from zony (206-188-64-44.cpe.distributel.net. [206.188.64.44]) by smtp.googlemail.com with ESMTPSA id b13sm2315111ioj.38.2016.08.08.18.47.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 08 Aug 2016 18:47:22 -0700 (PDT) From: npostavs@users.sourceforge.net To: sindikat@mail36.net (sindikat@mail36.net) Subject: Re: bug#18012: 24.3; Can't print a huge list structure in IELM References: <8738e45s8x.fsf@mail36.net> Date: Mon, 08 Aug 2016 21:47:30 -0400 In-Reply-To: <8738e45s8x.fsf@mail36.net> (sindikat@mail36.net's message of "Mon, 14 Jul 2014 13:11:58 +0600") Message-ID: <87oa52n26l.fsf@users.sourceforge.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 18012 Cc: 18012@debbugs.gnu.org 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: -0.7 (/) 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? From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 12 09:32:31 2018 Received: (at 18012) by debbugs.gnu.org; 12 Apr 2018 13:32:31 +0000 Received: from localhost ([127.0.0.1]:47227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6cL1-0007Yv-2C for submit@debbugs.gnu.org; Thu, 12 Apr 2018 09:32:31 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35661) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6cKz-0007Yh-2W for 18012@debbugs.gnu.org; Thu, 12 Apr 2018 09:32:29 -0400 Received: by mail-wm0-f67.google.com with SMTP id r82so9723127wme.0 for <18012@debbugs.gnu.org>; Thu, 12 Apr 2018 06:32:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=k8gUki8vzQMd6p1ip488h3DYI9GDj1qkEKAO/gSGenk=; b=febb0bbQRsq8bFmUJsLxxJVmIJQhgmR9hqDdVJUvKwH45+Z2040MIhZW0N1Rqv32S0 5IQc+6KglLBId3J8fqlFIhV8Da+m0w1NP/uyqCf8gonzWP1EzmNXhYcqZouxOxNKHM80 3O3zl8jakHLTos5wzoPBF3hI63jSW7XPmLfKazk18kP5J7H/rpTeOz7XTSVvjezGaeoK t7PdBJKJkhYL5mq30HnMdQE5A3oHzG9YdRIECuI50+lsZIzqc1RY+jzIDwGKs+4yCLi/ 8zOIY/XjWXYTfR/Kg2b0WYCvRFKqrJD6M87ClGAa6+wMYJe07Qcjos4yMatRYELnkSiz YGxw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=k8gUki8vzQMd6p1ip488h3DYI9GDj1qkEKAO/gSGenk=; b=Bacbv/D5ZXS1XmJH/RdK4l3//Tc1M8mgoN53JywyE8MyBZUtDZO002UCNM9Ju+rvXm jqeoYiDZycam0ztzu6V0GXDJAbzylnFaVzZjpl6QGSM/aLCjqtE3UferWjpGEUkDH+yr 5YxhYWctMZvTJ3DV0C3yJYB3QpRW1nBPJKbBLZwl/5KoZIKm98QM4m21bGGbP17rhxj8 APBmuQpFUfamJeWjFY4w5JuOS8TSkmFHp8jOU75IntWObntP7q1sdqCxaDa3HJtBrfcu ljj372Wk+EG7S/IxEXGDz7FZUxs1J3wvSbv34ufvfKJ6ShBbdY9qoIAJMPa9kDq5Lqz+ FWvQ== X-Gm-Message-State: ALQs6tAX6Om6tNMUTyypkDKmjg041cMSXGveF/3/FR9HlWMf51Fb3gsm VxievIW4psPf3buX/o11R2wGHw== X-Google-Smtp-Source: AIpwx4/wsxaevC3TwFbb3PTYe3KH5VjKLQjVaQ0U1dujUn13eVSMKRO72jLM/bIdQsTRqBsqU0JiHA== X-Received: by 10.80.162.230 with SMTP id 93mr9005423edm.121.1523539943413; Thu, 12 Apr 2018 06:32:23 -0700 (PDT) Received: from localhost ([86.43.102.231]) by smtp.gmail.com with ESMTPSA id i6sm2082058eda.16.2018.04.12.06.32.22 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Apr 2018 06:32:22 -0700 (PDT) From: "Basil L. Contovounesios" To: npostavs@users.sourceforge.net Subject: Re: bug#18012: 24.3; Can't print a huge list structure in IELM References: <8738e45s8x.fsf@mail36.net> <87oa52n26l.fsf@users.sourceforge.net> Date: Thu, 12 Apr 2018 14:32:16 +0100 In-Reply-To: <87oa52n26l.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net's message of "Mon, 08 Aug 2016 21:47:30 -0400") Message-ID: <87a7u8eejj.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 18012 Cc: "sindikat@mail36.net" , 18012@debbugs.gnu.org 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 (-) npostavs@users.sourceforge.net writes: > 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? I agree, given that ielm now uses cl-prin1: 81b5131e11: 2018-01-15 17:04:05 -0500 * lisp/ielm.el (ielm-eval-input): Use cl-print. https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=81b5131e11fa96d32a1718c6e2ebf40994d7d281 and thus infloops in the following scenario: 1. emacs -Q 2. M-x emacs-version RET => GNU Emacs 27.0.50 (build 2, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 2018-04-08 3. M-x ielm RET 4. (let ((l (make-list 2 0))) (nconc l (cdr l))) 5. C-m => infloop 6. C-g => *** IELM Error *** Quit during pretty-printing This is in contrast to the *scratch* buffer, where C-j correctly inserts the result of (4) as (0 0 . #1), presumably because pp is used instead of cl-prin1. Does this behaviour warrant a new bug? -- Basil From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 12 09:44:26 2018 Received: (at 18012) by debbugs.gnu.org; 12 Apr 2018 13:44:26 +0000 Received: from localhost ([127.0.0.1]:47231 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6cWY-0007oc-5q for submit@debbugs.gnu.org; Thu, 12 Apr 2018 09:44:26 -0400 Received: from mail-wm0-f41.google.com ([74.125.82.41]:53189) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6cWV-0007oP-Dc for 18012@debbugs.gnu.org; Thu, 12 Apr 2018 09:44:23 -0400 Received: by mail-wm0-f41.google.com with SMTP id g8so11703099wmd.2 for <18012@debbugs.gnu.org>; Thu, 12 Apr 2018 06:44:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcd-ie.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=fhzmXG63GS2RrlWSAcILk5vVFiIYq96CwdQ+ChJrn/4=; b=1+TBDt8WqR1/qc0ICzGXkeWk8LmR/CzkTf3/y0A5v/g8WTmb2pjqj23VmvXThq0SpD Cs7Cv+Xzn7CX5sJXWkjF0b5eLkECOVgOb8977VwoPdM3CAeEdHiwNbp3JH6uvwA6HAne gZZjSdGJVDbzO/tl1RGMDfUuRfpuHzcZqO5xgp8h/OJ3EHw+L0Cd885Cet2/ZqbGy7z2 cyHhYGgXARvZ2pdgtUIgiPXQPGgexNxQUQaWbk3rNXO1RqMDTrRWS3XeCyJ5tE9h+FdQ P8ZrSNREym5nSYeIbcC8Qqixb9Y45It5hMfTqakSwET8Z+XKQg5cADN2udnePnZeAyiH l0JA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=fhzmXG63GS2RrlWSAcILk5vVFiIYq96CwdQ+ChJrn/4=; b=gotKtw2WwHyrfsg2l7Bg9LM5y15jH8Bq8YgC5mkJte4XhPe2jfSzLpnpxKTv6UMDV3 CJGXx7EeRLb03REgh5YsfRR9g944zPxye1Yd0yS+zn1S2fFa2MDNnco0cBWA+TuGa9ru IxC0711eYIvhE+BFbIvfxnuYz8ryJxr1+ED52KSq2MjCF8dbvGx4IqmJmXFDDPyDH95K fKC0AIrpy9C4ZPdAcF/2VGBNWkHxgjOgVupbIC5AU8rPqcIyoak9LQhXbV+tpvJVxpua f838cpNJBm2QKWVtfKiv+suK/NaWoDwzWzbGJTJi67UoC029v1H8WrsLySAzmngbTwa3 mLMA== X-Gm-Message-State: ALQs6tB5RwdX0SiUO3p0cq3+DLBpMf6NeeLv46EBdR6B2L5vhRoiq+t2 XkYYb0Sy7samsYEPcDL0dUFilA== X-Google-Smtp-Source: AIpwx49bzAmlsDKnBGsh7ddPqpR3Kuo7KefiQnozqwqA4Gnz4R+dFRIj/rWQmDT8jslIRzQzoQEeUg== X-Received: by 10.80.227.198 with SMTP id c6mr15074025edm.4.1523540657705; Thu, 12 Apr 2018 06:44:17 -0700 (PDT) Received: from localhost ([86.43.102.231]) by smtp.gmail.com with ESMTPSA id y4sm2088807edi.4.2018.04.12.06.44.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Apr 2018 06:44:17 -0700 (PDT) From: "Basil L. Contovounesios" To: npostavs@users.sourceforge.net Subject: Re: bug#18012: 24.3; Can't print a huge list structure in IELM References: <8738e45s8x.fsf@mail36.net> <87oa52n26l.fsf@users.sourceforge.net> <87a7u8eejj.fsf@tcd.ie> Date: Thu, 12 Apr 2018 14:44:14 +0100 In-Reply-To: <87a7u8eejj.fsf@tcd.ie> (Basil L. Contovounesios's message of "Thu, 12 Apr 2018 14:32:16 +0100") Message-ID: <87604wedzl.fsf@tcd.ie> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 18012 Cc: "sindikat@mail36.net" , 18012@debbugs.gnu.org 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 (-) "Basil L. Contovounesios" writes: > 1. emacs -Q > 2. M-x emacs-version RET > => GNU Emacs 27.0.50 > (build 2, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) > of 2018-04-08 > 3. M-x ielm RET > 4. (let ((l (make-list 2 0))) > (nconc l (cdr l))) > 5. C-m > => infloop > 6. C-g > => *** IELM Error *** Quit during pretty-printing > > This is in contrast to the *scratch* buffer, where C-j correctly inserts > the result of (4) as (0 0 . #1), presumably because pp is used instead > of cl-prin1. > > Does this behaviour warrant a new bug? I say "correctly", but I mean "without inflooping", as I am not sure how, if at all, circular objects should be printed when print-circle is nil. Note that there is no infloop when printing a "top-level" circle, e.g.: (let ((l (list 0))) (nconc l l)) -- Basil From debbugs-submit-bounces@debbugs.gnu.org Thu Apr 12 10:22:05 2018 Received: (at 18012) by debbugs.gnu.org; 12 Apr 2018 14:22:05 +0000 Received: from localhost ([127.0.0.1]:48009 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6d6z-0000NU-5W for submit@debbugs.gnu.org; Thu, 12 Apr 2018 10:22:05 -0400 Received: from mail-io0-f172.google.com ([209.85.223.172]:37715) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1f6d6x-0000Mz-7A for 18012@debbugs.gnu.org; Thu, 12 Apr 2018 10:22:03 -0400 Received: by mail-io0-f172.google.com with SMTP id y128so6489915iod.4 for <18012@debbugs.gnu.org>; Thu, 12 Apr 2018 07:22:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=Ex/l+XABQKAxFuPDsiz7xS/e8lGmlwcJYMlzAMROUCQ=; b=UDGy9S3svA9k6zDG58y7yuztHTFLEze3r1vFwygxETjQQdJ8HyXjdRc+Va7mrrtxT9 OpUZolowEEC67+8UkKgdL71GvC6SJzxpaxgMUr15vjRodkDClpkqPR4v2On4oV9DA18Q YnEH2p5tSVvOBkDQ75JDQ0jVK+TnC9yrzpZ8HwwZQkuaniICJteYItJoKYd6J3IUEBrg jK7JVBPr6sCnXhjNYXiEwx/+eTKnB+AK4+FPhO6BtqYgiyREHB2BdhSiS9Vivs2CmC41 uPNhLHsu2fmjhbEwx0isfei4kXb5ulpsGlUxfBuJc3tGyMZ5DazYqInJRXCwgQ/nxpZ4 XsVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=Ex/l+XABQKAxFuPDsiz7xS/e8lGmlwcJYMlzAMROUCQ=; b=DQ0hd5muUzKH0+M8MglJWdYBzLWG1f+2qetMANjwqR0ISXtCf4Yeicxxp40LUj6+UP SOGbZhHvN8FTTwvMcK+tTKriWCNfbXbV2Ha7dKUVH8BSr2xvFNqJBox+91iemWxI9MVS fJ3RDt52CTy76N1BcElzIf83+rt/QqiQNNATlJdqk4/wKPjKtQMeybeq8YdG1s1iTsAE c9D59n0E9Gt279nmBb/sYiXJTGnhAFl+A5Mjf5fHmbLlyZmNGfl5qBChQ2IDqVhYa6Z1 y8EJkR2MqxJfuuz1vr03SR7ll1hg/yjjOyAH2RdWZLtr/qMfbNioYo+u0gEg7QYSdkqA SgoQ== X-Gm-Message-State: ALQs6tASyg8+Pi9cfmnnPYTk3sKXwJ/Ss0xdTRGgJ/2FwepeAO9JAXMg zCq4AF7Kbhj/vPrePZK2oTIDrQ== X-Google-Smtp-Source: AIpwx49KItoRRvC8b1sO6bzzD5fUG5VeHpr29oOkC4IqpN3zqP/8qGwhqgPOqhF2QCoDYjs5SkjdVA== X-Received: by 10.107.144.11 with SMTP id s11mr9385183iod.37.1523542917534; Thu, 12 Apr 2018 07:21:57 -0700 (PDT) Received: from zebian (cbl-45-2-119-34.yyz.frontiernetworks.ca. [45.2.119.34]) by smtp.googlemail.com with ESMTPSA id d184-v6sm1931549itd.44.2018.04.12.07.21.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 12 Apr 2018 07:21:56 -0700 (PDT) From: Noam Postavsky To: "Basil L. Contovounesios" Subject: Re: bug#18012: 24.3; Can't print a huge list structure in IELM References: <8738e45s8x.fsf@mail36.net> <87oa52n26l.fsf@users.sourceforge.net> <87a7u8eejj.fsf@tcd.ie> Date: Thu, 12 Apr 2018 10:21:54 -0400 In-Reply-To: <87a7u8eejj.fsf@tcd.ie> (Basil L. Contovounesios's message of "Thu, 12 Apr 2018 14:32:16 +0100") Message-ID: <87h8ogld31.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.90 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18012 Cc: "sindikat@mail36.net" , 18012@debbugs.gnu.org, npostavs@users.sourceforge.net 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 (-) "Basil L. Contovounesios" writes: >>> ELISP> (nestify (number-sequence 1 1000)) >>> *** IELM Error *** Error during pretty-printing (bug in pp) >> (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? > > I agree, given that ielm now uses cl-prin1: On the other hand, wouldn't it be confusing if ielm printing behaves differently from normal printing? Maybe all that needs to be fixed is the ielm error message for this case, which seems fairly uninformative at the moment. > 1. emacs -Q > 2. M-x emacs-version RET > => GNU Emacs 27.0.50 > (build 2, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) > of 2018-04-08 > 3. M-x ielm RET > 4. (let ((l (make-list 2 0))) > (nconc l (cdr l))) > 5. C-m > => infloop > 6. C-g > => *** IELM Error *** Quit during pretty-printing > Does this behaviour warrant a new bug? Yes, I would say so (for cl-prin1 specifically). From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 04 04:41:10 2021 Received: (at 18012) by debbugs.gnu.org; 4 Sep 2021 08:41:10 +0000 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 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=; 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 From: Lars Ingebrigtsen To: sindikat@mail36.net Subject: Re: bug#18012: 24.3; Can't print a huge list structure in IELM References: <8738e45s8x.fsf@mail36.net> Date: Sat, 04 Sep 2021 10:40:57 +0200 In-Reply-To: <8738e45s8x.fsf@mail36.net> (sindikat@mail36.net's message of "Mon, 14 Jul 2014 13:11:58 +0600") Message-ID: <87o898raw6.fsf@gnus.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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: 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 > :in [...] 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: -2.3 (--) X-Debbugs-Envelope-To: 18012 Cc: 18012@debbugs.gnu.org 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: -3.3 (---) 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 From debbugs-submit-bounces@debbugs.gnu.org Sat Sep 04 04:41:14 2021 Received: (at control) by debbugs.gnu.org; 4 Sep 2021 08:41:15 +0000 Received: from localhost ([127.0.0.1]:46555 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMREg-0004zi-P9 for submit@debbugs.gnu.org; Sat, 04 Sep 2021 04:41:14 -0400 Received: from quimby.gnus.org ([95.216.78.240]:39122) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mMREe-0004zI-S1 for control@debbugs.gnu.org; Sat, 04 Sep 2021 04:41:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Subject:From:To:Message-Id:Date:Sender:Reply-To:Cc: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=K0Ykk1GRrrGWETbHRubQPsJJCLLT8okSuXEvTo0pvj4=; b=Wi3S7R/IkwFEbT9bas3a077V9E twcKbypRFLY3T9ej7eQyVTF3B5+2PBctRXARl3AFy6yv11SQW4emHdOWDsez/y+Fn/NdWYhp9WiDk 1Pxm0pOtpwA49NwChgpMzo0qOvet0LiQYBdXQpYiEklBaPz/VHBz/sh4NgPCLHXsNeEU=; 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 1mMREX-0007Up-0W for control@debbugs.gnu.org; Sat, 04 Sep 2021 10:41:07 +0200 Date: Sat, 04 Sep 2021 10:41:04 +0200 Message-Id: <87mtosravz.fsf@gnus.org> To: control@debbugs.gnu.org From: Lars Ingebrigtsen Subject: control message for bug #18012 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 18012 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: -2.3 (--) 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: -3.3 (---) close 18012 quit From unknown Sat Aug 16 11:37:01 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sat, 02 Oct 2021 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator