guile-devel
[Top][All Lists]
Advanced

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

Re: GNU Guile 2.1.7 released (beta)


From: David Pirotte
Subject: Re: GNU Guile 2.1.7 released (beta)
Date: Thu, 2 Mar 2017 17:54:51 -0300

Hi Daniel,
Andy,

> I think this is the minimum for .guile:
> 
> (import (system repl common) (ice-9 format))
> (repl-default-option-set! 'print (lambda (repl val) (format #t 
> "address@hidden" val)))
> 
> That doesn't seem so bad. For the current repl you can do:
> 
> (repl-option-set! (car (fluid-ref *repl-stack*)) 'print (lambda (repl val) 
> (format
> #t "address@hidden" val)))

Veeeeeeery complicated :)

Howe about this:

        (set! %repl-printer truncated-print)
        (set! %truncated-print-max-chars 72)

In the repl

        ,repl-printer truncated-print
        ,truncated-print-max-chars 72

Once set, the above would be used by error and raised exception 'printers', per
default imo, otherwise we could also have:

        (set! %error-printer truncated-print)

In the repl

        ,error-printer truncated-print

Regards,
David

Attachment: pgpwH1h3BvyNq.pgp
Description: OpenPGP digital signature


reply via email to

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