From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: Set debug output width in REPL Date: Sat, 05 Mar 2011 20:01:56 +0100 Message-ID: References: <475017.40217.qm@web37908.mail.mud.yahoo.com> <8739n1d7gs.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1299351736 26525 80.91.229.12 (5 Mar 2011 19:02:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 5 Mar 2011 19:02:16 +0000 (UTC) Cc: guile-devel@gnu.org To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Sat Mar 05 20:02:10 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pvwjy-0006jB-3h for guile-devel@m.gmane.org; Sat, 05 Mar 2011 20:02:10 +0100 Original-Received: from localhost ([127.0.0.1]:47591 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pvwjx-0007sx-DJ for guile-devel@m.gmane.org; Sat, 05 Mar 2011 14:02:09 -0500 Original-Received: from [140.186.70.92] (port=60831 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pvwjr-0007sq-9B for guile-devel@gnu.org; Sat, 05 Mar 2011 14:02:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pvwjp-0000cP-Tq for guile-devel@gnu.org; Sat, 05 Mar 2011 14:02:03 -0500 Original-Received: from a-pb-sasl-sd.pobox.com ([64.74.157.62]:39409 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pvwjp-0000c8-RB; Sat, 05 Mar 2011 14:02:01 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 4DB2A3A0E; Sat, 5 Mar 2011 14:03:24 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=vscFOkdYLn1X tEcZPL5FxwucI+k=; b=Tr5PzlkJMHZF9xL9iXMn3k388hYMXcM/uLWveNqNjjnV saemfF0VTkwYqodTt99DEISiX0mpa5n+kdrIM+Ms7OlGADIgXhrPnc2VQAQhd3/c rHg1H995kLtrTzMcLbcx2ed+gyueaZEgUZJ6dEKYbSH+jbqZqZOnH3Mc6I4Ql1Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=wPK865 DG3u6JhUsk/1bpcvyL2c737pzy6hsjR0sQX3p2+2cRur889BC1H6f7/mIUcCWvqY 1jbM7TMbG12ZIZ+MZp4u7uOwKpkcXNJO8mv037I+p+kDBJn8rDETQ1zuq/cQtZEH GjrKoDFOu6FKGstdxZQS8JU1dfdVAaXY+36IY= Original-Received: from a-pb-sasl-sd.pobox.com (unknown [127.0.0.1]) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTP id 356753A0D; Sat, 5 Mar 2011 14:03:23 -0500 (EST) Original-Received: from unquote.localdomain (unknown [90.164.198.39]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a-pb-sasl-sd.pobox.com (Postfix) with ESMTPSA id 4FBB73A0C; Sat, 5 Mar 2011 14:03:20 -0500 (EST) In-Reply-To: <8739n1d7gs.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Sat, 05 Mar 2011 14:26:11 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-Pobox-Relay-ID: 3E2BA95E-475B-11E0-804D-AF401E47CF6F-02397024!a-pb-sasl-sd.pobox.com X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 64.74.157.62 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:11779 Archived-At: On Sat 05 Mar 2011 14:26, ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Andy Wingo writes: > >> On Mon 21 Feb 2011 07:02, Mike Gran writes: >> >>> I find that the backtrace output in the REPL is too constrained >>> my verbose code. The attached patch would let one set the=20 >>> >>> width of the backtrace and locals meta-commands. >>> >>> What do you think? >> >> Applied, thanks. > > FWIW I still think that the default should take into account terminal > settings, as discussed in this thread. Sorry for the confusion. The terminal settings are associated with an fd, which maps more or less to a port, and I thought that you were opposed to port-specific properties. (Incidentally I did not think that argument made much sense.) Having it be a repl-specific property has the irritation of propagating the width down to nested repls. To me the true place of this setting is specific to a thread, as repls are (largely) specific to threads. So it would be equivalent to have `terminal-width' close over a fluid instead of a lexical. Anyway, with a week gone by and no more patches from anyone involved, I decided to think about it myself for a bit, and ended up thinking Mike's patch was "worse is better", but then also feeling it could be cleaner, hence my addition. Also, I wanted the initial settings to reflect the terminal width without a need to call ,width. So them's the reasons! Let me know if you have any more concerns. Do try out different approaches -- it is a clarifying agent :) Regards, Andy --=20 http://wingolog.org/