From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Daniel Llorens Newsgroups: gmane.lisp.guile.devel Subject: Re: Enable truncation of exception output Date: Fri, 10 Mar 2017 10:12:23 +0100 Message-ID: References: <38205FE3-791F-4EE8-BD7F-07BC6C0511DE@bluewin.ch> <87r325tt66.fsf@pobox.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1489137158 19622 195.159.176.226 (10 Mar 2017 09:12:38 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 10 Mar 2017 09:12:38 +0000 (UTC) Cc: guile-devel To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Fri Mar 10 10:12:33 2017 Return-path: Envelope-to: guile-devel@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 1cmGbB-0004a0-IO for guile-devel@m.gmane.org; Fri, 10 Mar 2017 10:12:33 +0100 Original-Received: from localhost ([::1]:38088 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmGbH-0008O6-Kh for guile-devel@m.gmane.org; Fri, 10 Mar 2017 04:12:39 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34341) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cmGb9-0008Nq-Vr for guile-devel@gnu.org; Fri, 10 Mar 2017 04:12:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cmGb7-0007wi-BF for guile-devel@gnu.org; Fri, 10 Mar 2017 04:12:31 -0500 Original-Received: from vimdzmsp-sfwd05.bluewin.ch ([195.186.120.133]:41180 helo=smtpauths.lb.bluewin.ch) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cmGb7-0007w5-4H for guile-devel@gnu.org; Fri, 10 Mar 2017 04:12:29 -0500 Original-Received: from 4box.hq.corp.viasat.com ([213.193.80.99]) by vimdzmsp-sfwd05.bluewin.ch Swisscom AG with SMTP id mGb3cCZ0ImdnUmGb3cxWqb; Fri, 10 Mar 2017 10:12:26 +0100 X-Bluewin-Spam-Analysis: v=2.1 cv=eq0SttdX c=1 sm=1 tr=0 a=DzaHVtLsrNCQ5PccsnG91A==:117 a=DzaHVtLsrNCQ5PccsnG91A==:17 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=kj9zAlcOel0A:10 a=ybZZDoGAAAAA:8 a=RQLuVS4wjcB5AWtN_H8A:9 a=CjuIK1q_8ugA:10 a=0RhZnL1DYvcuLYC8JZ5M:22 X-Bluewin-Spam-Score: 0.00 X-FXIT-IP: IPv4[213.193.80.99] Epoch[1489137146] X-Bluewin-AuthAs: dll@bluewin.ch In-Reply-To: <87r325tt66.fsf@pobox.com> X-Mailer: Apple Mail (2.1878.6) X-CMAE-Envelope: MS4wfAbLA62zA398uCZYS8BHg6yvZORZnzdWQ8DjUzYku0c+RUEQ7qYgbpEBAX5NBYsqZ2gPR4zKu88GMjswj/2hGm5B1kw+woztYnhOoxQQeU5TlMXSzmIn 0pDnWlHQ2SWMwkTEhaAvM5O0+Ih6YAxA9MBVsAuwVxNOxBzMxIUur8i7gYMaHWKymqbPDZ6g5tkeTmhigM00YMrAgahkzlZe/kI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 195.186.120.133 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:19020 Archived-At: On 10 Mar 2017, at 09:47, Andy Wingo wrote: > I have a crazy idea :) What about, we just let (ice-9 format) be > "format" ? Right now loading (ice-9 format) does a set! to format, as > you know, overriding the core binding. This is unnecessary and > complicated. I see that using (ice-9 format) only adds 50 KB to the > 2828-KB baseline of private dirty memory. Then we can use :@y > directly in the format strings and we can avoid all the = monkeypatching. This change would make things simpler, but it wouldn't solve the problem = we had. Sometimes you want the full error printed out and sometimes you = do not. It's a decision that should be made in ~/.guile or at the REPL = or at the call site, not when you code the scm_error call. Daniel