From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: David Pirotte Newsgroups: gmane.lisp.guile.bugs Subject: bug#29669: repl-print - requet for iprovement Date: Fri, 3 Aug 2018 23:37:03 -0300 Message-ID: <20180803233703.6bdc69e3@capac> References: <20171211213615.7bca6fc8@capac> <87r2kmrkg2.fsf@gnu.org> <87po02jf67.fsf@igalia.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/hr2RLn.d69/Z/iMtGa0J/Ww"; protocol="application/pgp-signature" X-Trace: blaine.gmane.org 1533350164 1418 195.159.176.226 (4 Aug 2018 02:36:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 4 Aug 2018 02:36:04 +0000 (UTC) Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 29669@debbugs.gnu.org To: Andy Wingo Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sat Aug 04 04:36: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 1flmQC-0000G8-AG for guile-bugs@m.gmane.org; Sat, 04 Aug 2018 04:36:00 +0200 Original-Received: from localhost ([::1]:53687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1flmSJ-0002tp-31 for guile-bugs@m.gmane.org; Fri, 03 Aug 2018 22:38:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1flmSD-0002tg-Sb for bug-guile@gnu.org; Fri, 03 Aug 2018 22:38:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1flmSA-00071m-Nl for bug-guile@gnu.org; Fri, 03 Aug 2018 22:38:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:35325) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1flmSA-00071W-K4 for bug-guile@gnu.org; Fri, 03 Aug 2018 22:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1flmSA-0005DL-9B for bug-guile@gnu.org; Fri, 03 Aug 2018 22:38:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: David Pirotte Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sat, 04 Aug 2018 02:38: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.153335023419990 (code B ref 29669); Sat, 04 Aug 2018 02:38:02 +0000 Original-Received: (at 29669) by debbugs.gnu.org; 4 Aug 2018 02:37:14 +0000 Original-Received: from localhost ([127.0.0.1]:40343 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1flmRO-0005CM-0j for submit@debbugs.gnu.org; Fri, 03 Aug 2018 22:37:14 -0400 Original-Received: from maximusconfessor.all2all.org ([79.99.200.102]:40526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1flmRK-0005CB-QR for 29669@debbugs.gnu.org; Fri, 03 Aug 2018 22:37:12 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by maximusconfessor.all2all.org (Postfix) with ESMTP id 552171BE00E8; Sat, 4 Aug 2018 04:37:10 +0200 (CEST) Original-Received: from maximusconfessor.all2all.org ([127.0.0.1]) by localhost (maximusconfessor.all2all.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MNqDvQsoMMWv; Sat, 4 Aug 2018 04:37:10 +0200 (CEST) Original-Received: from capac (unknown [189.122.100.197]) by maximusconfessor.all2all.org (Postfix) with ESMTPSA id 0E1181BE00E5; Sat, 4 Aug 2018 04:37:08 +0200 (CEST) In-Reply-To: <87po02jf67.fsf@igalia.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) 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:9109 Archived-At: --Sig_/hr2RLn.d69/Z/iMtGa0J/Ww Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Ludo, Andy, > > scheme@(guile-user)> ,use (ice-9 pretty-print) > > scheme@(guile-user)> ,o print (lambda (repl obj) (truncated-print obj) = (newline)) > > 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 25 26 27 > > # =E2=80=A6) > > > > So the question becomes: should we change the default? Why not? then who would want multi-line prints would do the 'oppoite' of th= e above, right? scheme@(guile-user)> ,use (ice-9 pretty-print) scheme@(guile-user)> ,o print (lambda (repl obj) (write obj) (newline)) Or, as I do in Guile-CV, implement a specific display method for 'their objects' (im-display in guile-cv, and the manual says 'to be used with caut= ion...) > > I have a slight preference for keeping the default as it is to avoid > > surprises, but no strong opinion. What surprise(s)? :), I mean, what sort of code or who's the one of us who would rely on the repl= print 'layout' in any sort of way(s)? > > Andy, Mark, others, WDYT? =20 > Hoo, I don't know. If we were to do this it should be controllable by > REPL options, I think; we'd need the ability to go back and forth. But > if we have the option I think it could make sense for it to be on by > default, like what GDB does.=20 It seems to me it is a yes :) note that (just not to forgot), we need this to be done both for the repl _and_ exception printers as well ... it is as essential if not more then within the repl > Thing is, truncated-print does its job only OK, not great, so it's a har= d sell to > standardize on it. You probably do want multi-line prints sometimes... I'm actually using truncated-print all the time, since it is simply impossi= ble otherwise to use/develop guile-v, and I never spotted any 'problem' (not to= say I can guarantee there is none of course, but that did not happen in years). = Then we could always improve when someone report a problem ... Thanks, David --Sig_/hr2RLn.d69/Z/iMtGa0J/Ww Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEhCJlRZtBM3furJHe83T9k6MFetcFAltlEU8ACgkQ83T9k6MF eteBngf+Nk8dmmR/oXj3OO+8ubVHHc2oU2u2VONLofx4WrhbgdWNIZzOsEF/ZcvB 0PoOdmcFUk4JlWtUFMD09214SApYcfKVxMP5V7fuY1v/CSQwnYXlfYZCsCcDlvEU ZjV5qz3l9/C0PYOkCEHku/gKns5vfAIsPrMI76ok2NHQtI2N500QTkEqVJ4tj18P 8T6E9+VcQlDfBsIIAfMS4ROKK6mRlwXYndbrv9UFNskfL/lPdyB6vv5zeE3MWlSv gb31xxcNca/VEcooiP0mx3w0xqkchP/8Dr2476yFYPCb+oXBxAYMCg8FxMsWKry5 kVMfx0JPoPaM9DXjBUWUqrF70C53Fw== =vynO -----END PGP SIGNATURE----- --Sig_/hr2RLn.d69/Z/iMtGa0J/Ww--