guile-user
[Top][All Lists]
Advanced

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

Re: repl, abridged output?


From: Nala Ginrut
Subject: Re: repl, abridged output?
Date: Wed, 05 Dec 2012 15:00:28 +0800

On Tue, 2012-12-04 at 13:59 +0100, Ludovic Courtès wrote:
> Hi!
> 
> Daniel Hartwig <address@hidden> skribis:
> 
> > On 3 December 2012 20:39, Daniel Llorens <address@hidden> wrote:
> >> I've seen that there's a REPL command ,inspect that produces
> >> abridged output. Is it possible to have this as the default for
> >> printing to the REPL? Is there any way to configure this?
> >
> > scheme@(guile-user)> (eval '(set! repl-print
> >                               (lambda (repl val)
> >                                 (if (not (eq? val *unspecified*))
> >                                     (begin
> >                                       (run-hook before-print-hook val)
> >                                       (format #t "address@hidden" val)
> >                                       (newline)))))
> >                            (resolve-module '(system repl common)))
> > scheme@(guile-user)> (use-modules (srfi srfi-1))
> > scheme@(guile-user)> (iota 500)
> > $1 = (0 1 2 3 4 5 6 7 …)
> 
> Indeed.  Perhaps there should be a standard, simple way to do that.
> Would you like to propose a patch?  :-)
> 

Daniel has posted a patch for that, and it simplified my color-REPL
work. My patch will be based on his patch, then I don't have to patch
'pp' now.

Coming soon.

> Ludo’.
> 
> 





reply via email to

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