From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Newsgroups: gmane.lisp.guile.bugs Subject: bug#29669: repl-print - requet for iprovement Date: Sun, 01 Jul 2018 18:26:37 +0200 Message-ID: <87r2kmrkg2.fsf@gnu.org> References: <20171211213615.7bca6fc8@capac> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1530462364 26284 195.159.176.226 (1 Jul 2018 16:26:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 1 Jul 2018 16:26:04 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: Andy Wingo , 29669@debbugs.gnu.org To: David Pirotte Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Jul 01 18:26:00 2018 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZfAl-0006gn-LK for guile-bugs@m.gmane.org; Sun, 01 Jul 2018 18:25:59 +0200 Original-Received: from localhost ([::1]:54955 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZfCr-0001VE-84 for guile-bugs@m.gmane.org; Sun, 01 Jul 2018 12:28:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45602) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZfCl-0001Tu-Kr for bug-guile@gnu.org; Sun, 01 Jul 2018 12:28:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZfCk-0002SV-Ga for bug-guile@gnu.org; Sun, 01 Jul 2018 12:28:03 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34376) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fZfCk-0002SK-Bc for bug-guile@gnu.org; Sun, 01 Jul 2018 12:28:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fZfCk-0008AC-5g for bug-guile@gnu.org; Sun, 01 Jul 2018 12:28:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 01 Jul 2018 16:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 29669 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 29669-submit@debbugs.gnu.org id=B29669.153046245931347 (code B ref 29669); Sun, 01 Jul 2018 16:28:02 +0000 Original-Received: (at 29669) by debbugs.gnu.org; 1 Jul 2018 16:27:39 +0000 Original-Received: from localhost ([127.0.0.1]:42273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZfCN-00089X-2F for submit@debbugs.gnu.org; Sun, 01 Jul 2018 12:27:39 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54564) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fZfCM-00089M-5U for 29669@debbugs.gnu.org; Sun, 01 Jul 2018 12:27:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fZfCG-0002BL-32 for 29669@debbugs.gnu.org; Sun, 01 Jul 2018 12:27:32 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43684) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fZfBP-0001lP-6L; Sun, 01 Jul 2018 12:26:39 -0400 Original-Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=50356 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fZfBO-0007SW-KJ; Sun, 01 Jul 2018 12:26:38 -0400 In-Reply-To: <20171211213615.7bca6fc8@capac> (David Pirotte's message of "Mon, 11 Dec 2017 21:36:15 -0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: "bug-guile" Xref: news.gmane.org gmane.lisp.guile.bugs:9081 Archived-At: Hello, David Pirotte skribis: > From d920d22efe3e77d23004122e21cec420c402f531 Mon Sep 17 00:00:00 2001 > From: David Pirotte > Date: Mon, 11 Dec 2017 21:28:24 -0200 > Subject: [PATCH] Updating repl-print to use truncated-print > > * module/system/repl/common.scm (repl-print): Use (truncated-print val), > not (write val). With this update, repl-print becomes 'friendly' wrt > large (huge) lists, arrays, srfi-4 butevoectors ... Note that it=E2=80=99s already possible to do this: --8<---------------cut here---------------start------------->8--- scheme@(guile-user)> ,use (ice-9 pretty-print) scheme@(guile-user)> ,o print (lambda (repl obj) (truncated-print obj) (new= line)) scheme@(guile-user)> (iota 500) $20 =3D (0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2= 5 26 27 # =E2=80=A6) --8<---------------cut here---------------end--------------->8--- So the question becomes: should we change the default? I have a slight preference for keeping the default as it is to avoid surprises, but no strong opinion. Andy, Mark, others, WDYT? Ludo=E2=80=99.