From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: lloda Newsgroups: gmane.lisp.guile.bugs Subject: bug#59540: Calling length on a very long improper list is disastrous. Date: Mon, 12 Dec 2022 10:25:39 +0100 Message-ID: <602C3A2B-D6B0-42F2-8E50-7A9E581A9879@sarc.name> References: <87r0x7419l.fsf@gnu.org> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14528"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Jeremy Phelps , 59540@debbugs.gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-X-From: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Mon Dec 12 10:27:40 2022 Return-path: Envelope-to: guile-bugs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1p4f62-0003aE-Vc for guile-bugs@m.gmane-mx.org; Mon, 12 Dec 2022 10:27:38 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4f4W-0002L6-IT; Mon, 12 Dec 2022 04:26:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p4f4U-0002HO-O8 for bug-guile@gnu.org; Mon, 12 Dec 2022 04:26:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p4f4U-0008PZ-DJ for bug-guile@gnu.org; Mon, 12 Dec 2022 04:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1p4f4T-0007em-S6 for bug-guile@gnu.org; Mon, 12 Dec 2022 04:26:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: lloda Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Mon, 12 Dec 2022 09:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59540 X-GNU-PR-Package: guile Original-Received: via spool by 59540-submit@debbugs.gnu.org id=B59540.167083715329426 (code B ref 59540); Mon, 12 Dec 2022 09:26:01 +0000 Original-Received: (at 59540) by debbugs.gnu.org; 12 Dec 2022 09:25:53 +0000 Original-Received: from localhost ([127.0.0.1]:51717 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4f4L-0007eY-Dz for submit@debbugs.gnu.org; Mon, 12 Dec 2022 04:25:53 -0500 Original-Received: from mta-12-4.privateemail.com ([198.54.127.107]:1059) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1p4f4K-0007eN-9M for 59540@debbugs.gnu.org; Mon, 12 Dec 2022 04:25:52 -0500 Original-Received: from mta-12.privateemail.com (localhost [127.0.0.1]) by mta-12.privateemail.com (Postfix) with ESMTP id 390B718000A1; Mon, 12 Dec 2022 04:25:45 -0500 (EST) Original-Received: from [192.168.1.105] (unknown [51.154.167.214]) by mta-12.privateemail.com (Postfix) with ESMTPA id 5768A18000A2; Mon, 12 Dec 2022 04:25:42 -0500 (EST) In-Reply-To: <87r0x7419l.fsf@gnu.org> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Virus-Scanned: ClamAV using ClamSMTP X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.lisp.guile.bugs:10468 Archived-At: > On 10 Dec 2022, at 18:27, Ludovic Court=C3=A8s wrote: >=20 > ... > Of these only #2 is something we could work on. However, truncation = has > proven to be a hindrance sometimes (in backtraces, objects are > automatically), so I=E2=80=99m not sure we want to enable it by = default on > wrong-type-arg error messages. >=20 > Thoughts? >=20 > Ludo=E2=80=99. There's previous discussion on this, going both ways. I think excessive output is a more serious problem, because it should be = possible to go to a backtrace frame and look at objects directly. On the = other hand, it should also be possible to C-c when guile starts to flood = the terminal. But neither of these workarounds is reliable :-/ = Ultimately this printing should be configurable. We already have the repl-option system (repl-option-set! repl 'print = ...). This system doesn't apply to exception messages nor backtraces. I = think if it did, that would mostly solve the problem. I also think that, besides options to truncate or not, we should have a = pager (display at most a page, give options to next/stop/all). That = would be the best default.