guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Add new print style for repl trace


From: Andy Wingo
Subject: Re: [PATCH] Add new print style for repl trace
Date: Wed, 16 Jan 2013 18:12:45 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

On Wed 16 Jan 2013 15:46, Nala Ginrut <address@hidden> writes:

> If I set #:width 0, it'll print like the old patch, right?
> It's nice if there's way to print all as depths, I think it's fine now.
> ;-)

You would specify #:max-indent 0 -- #:width is for limiting total width.

    > ,trace (test (make-list 5)) #:max-indent 0
    trace: 1> (#<procedure 184ae80> #(#<directory (guile-user) 11e6cf0> #f #f))
    trace: 1< #(#<directory (guile-user) 11e6cf0> test make-list)
    trace: (#<procedure 185bbe0 at <current input>:2:0 ()>)
    trace: 1> (make-list 5)
    trace: 1< (() () () () ())
    trace: (test (() () () () ()))
    trace: (length (() () () () ()))
    trace: 1> (length (() () () ()))
    trace: 2> (length (() () ()))
    trace: 3> (length (() ()))
    trace: 4> (length (()))
    trace: 5> (length ())
    trace: 5< 0
    trace: 4< 1
    trace: 3< 2
    trace: 2< 3
    trace: 1< 4
    trace: 5

Given your positive feedback, I'll go ahead and push along with an
update to the docs.

Thanks for the patch!

Andy
-- 
http://wingolog.org/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]