From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mike Gran Newsgroups: gmane.lisp.guile.devel Subject: Set debug output width in REPL Date: Sun, 20 Feb 2011 22:02:13 -0800 (PST) Message-ID: <475017.40217.qm@web37908.mail.mud.yahoo.com> Reply-To: Mike Gran NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="0-1856902138-1298268133=:40217" X-Trace: dough.gmane.org 1298268151 2174 80.91.229.12 (21 Feb 2011 06:02:31 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 21 Feb 2011 06:02:31 +0000 (UTC) To: guile-devel Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Feb 21 07:02:25 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 1PrOqm-0001vI-3A for guile-devel@m.gmane.org; Mon, 21 Feb 2011 07:02:24 +0100 Original-Received: from localhost ([127.0.0.1]:56385 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrOqj-0002vR-9Z for guile-devel@m.gmane.org; Mon, 21 Feb 2011 01:02:21 -0500 Original-Received: from [140.186.70.92] (port=53807 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PrOqe-0002vG-Nv for guile-devel@gnu.org; Mon, 21 Feb 2011 01:02:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PrOqd-0008Bt-N9 for guile-devel@gnu.org; Mon, 21 Feb 2011 01:02:16 -0500 Original-Received: from web37908.mail.mud.yahoo.com ([209.191.91.170]:25628) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PrOqd-0008Bk-Hy for guile-devel@gnu.org; Mon, 21 Feb 2011 01:02:15 -0500 Original-Received: (qmail 43737 invoked by uid 60001); 21 Feb 2011 06:02:13 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1298268133; bh=mR4dQeBZ+Ts0qRD2FNB2tWv535asyw+OOykciWoQ+NQ=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=N0PJcFKsey4PqauhVmxPZdUJ3KhURoyAqhlHWQSpjZ4H0LFCGd4dC72dEpvx97utD+fot1oSndwhvNO/19lzPZLCfF0vd5dxT0nn3OVoNGSeXU0sB9GWMpfyEPezaXXprn6JJ3LFrQnm/Mm6CnTt6sEF16eCs9OjG9PK28NRd2M= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:MIME-Version:Content-Type; b=cORt9d74bVldGj1k+R6alhuhdJ66wzMV8iVtbcj/aK/QUhiilvYIodYAhIx2RlikXPfWifCucYmUby1Hd1yaN/2NuZief+CAtDpGSAQaCSpu89S9jcOtep1CN4d8IcxSrT25kjpQ2ay3drMK+LNe6fIgjmTO1XCeJw6Zz+Gbd1o=; X-YMail-OSG: glVOSZcVM1mxbbuKlRB5LUhJOZRTPVWKnwQAKgKB__sWNCT bSYgzcaYQ39fj9m6FcXVm3me99tOy9nmvq20R2xQhcAc_1X7RRF7h6oecAqv EgHjoQ4wHXK6XD5NN8wB1CDUOL8EGYterITzS9haMWLlhI.ex5xmo6A8l_2M ExO38WGgy69RyffSoPgBTCjKNvTqPXxtYWI6FYhh4kO7Z7LGGMHnTd_VlHLC lKQXQnw5gYQdJncHaQAYEd7FaQoFmVoOtGIGkhZ5UCSeZbzo8pOyuAB_ICzS yh6dhnlVFOkw8PtgMZF4SK1_OsB49pJ_V.L5hQ6umzNb8BFVZ Original-Received: from [71.140.145.2] by web37908.mail.mud.yahoo.com via HTTP; Sun, 20 Feb 2011 22:02:13 PST X-Mailer: YahooMailWebService/0.8.109.292656 X-detected-operating-system: by eggs.gnu.org: FreeBSD 6.x (1) X-Received-From: 209.191.91.170 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:11668 Archived-At: --0-1856902138-1298268133=:40217 Content-Type: text/plain; charset=us-ascii Hi- 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. What do you think? -Mike --0-1856902138-1298268133=:40217 Content-Type: text/x-patch; name="0001-Add-width-meta-command-to-set-screen-width-in-debug-.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="0001-Add-width-meta-command-to-set-screen-width-in-debug-.patch" RnJvbSA3ODFiY2MyNzgzNzA5ZTc2NTkxY2QzNTRmNDk3NmYwMmViMjg0NTI2 IE1vbiBTZXAgMTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBNaWNoYWVsIEdyYW4g PHNwazEyMUB5YWhvby5jb20+CkRhdGU6IFN1biwgMjAgRmViIDIwMTEgMjE6 NTM6NDYgLTA4MDAKU3ViamVjdDogW1BBVENIXSBBZGQgLHdpZHRoIG1ldGEt Y29tbWFuZCB0byBzZXQgc2NyZWVuIHdpZHRoIGluIGRlYnVnIG91dHB1dAoK VGhpcyBtZXRhLWNvbW1hbmQgYWxsb3dzIG9uZSB0byBzZXQgdGhlIGRlZmF1 bHQgbnVtYmVyIG9mIGNvbHVtbnMKdGhhdCBvdXRwdXQgZnJvbSAsYmFja3Ry YWNlIGFuZCAsbG9jYWxzIHNoYWxsIG9jY3VweS4KCiogZG9jL3JlZi9zY2hl bWUtdXNpbmcudGV4aSAoRGVidWcgQ29tbWFuZHMpOiBkb2N1bWVudCAsd2lk dGgKKiBtb2R1b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YmVyIChhIG5vbi1uZWdhdGl2ZSBpbnRlZ2Vy KSIgeCkKKyAgICAgIChsZXQgKCh3IChvciB4CisgICAgICAgICAgICAgICAg ICAgKGZhbHNlLWlmLWV4Y2VwdGlvbiAoc3RyaW5nLT5udW1iZXIgKGdldGVu diAiQ09MVU1OUyIpKSkKKyAgICAgICAgICAgICAgICAgICA3MikpKQorICAg ICAgICAoZm9ybWF0ICN0ICJTZXR0aW5nIHNjcmVlbiB3aWR0aCB0byB+YSBj b2x1bW5zfiUiIHcpCisgICAgICAgIChzZXQhICp3aWR0aCogdykpKSkKIAog DAogOzs7Ci0tIAoxLjcuNAoK --0-1856902138-1298268133=:40217--