From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.devel Subject: Re: Set debug output width in REPL Date: Mon, 21 Feb 2011 11:12:24 -0500 Message-ID: <871v31z7rr.fsf@netris.org> References: <475017.40217.qm@web37908.mail.mud.yahoo.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1298304785 31159 80.91.229.12 (21 Feb 2011 16:13:05 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Feb 2011 16:13:05 +0000 (UTC) Cc: guile-devel To: Mike Gran Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Feb 21 17:13:01 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 1PrYNh-00046k-DG for guile-devel@m.gmane.org; Mon, 21 Feb 2011 17:13:01 +0100 Original-Received: from localhost ([127.0.0.1]:46712 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrYNg-0005dG-Kq for guile-devel@m.gmane.org; Mon, 21 Feb 2011 11:13:00 -0500 Original-Received: from [140.186.70.92] (port=56935 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrYNO-0005Zj-B5 for guile-devel@gnu.org; Mon, 21 Feb 2011 11:12:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrYNN-0008Eh-B9 for guile-devel@gnu.org; Mon, 21 Feb 2011 11:12:42 -0500 Original-Received: from world.peace.net ([216.204.32.208]:41236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PrYNN-0008BO-72 for guile-devel@gnu.org; Mon, 21 Feb 2011 11:12:41 -0500 Original-Received: from ip68-9-118-38.ri.ri.cox.net ([68.9.118.38] helo=freedomincluded) by world.peace.net with esmtpa (Exim 4.69) (envelope-from ) id 1PrYN7-0000Ru-Lq; Mon, 21 Feb 2011 11:12:25 -0500 Original-Received: from mhw by freedomincluded with local (Exim 4.69) (envelope-from ) id 1PrYN6-0003Wf-DW; Mon, 21 Feb 2011 11:12:24 -0500 In-Reply-To: <475017.40217.qm@web37908.mail.mud.yahoo.com> (Mike Gran's message of "Sun, 20 Feb 2011 22:02:13 -0800 (PST)") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 216.204.32.208 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:11669 Archived-At: 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 > width of the backtrace and locals meta-commands. > index d4b3e4a..40d720d 100644 > --- a/module/system/repl/command.scm > +++ b/module/system/repl/command.scm > @@ -71,6 +71,8 @@ > (define *show-table* > '((show (warranty w) (copying c) (version v)))) > > +(define *width* 72) > + > (define (group-name g) (car g)) > (define (group-commands g) (cdr g)) > What do you think? It seems to me that *width* should not be a global variable, but rather a per-repl setting. It probably belongs in the options field of the record, no? See "repl-default-options" in repl/common.scm. Thanks, Mark