From: David Pirotte <david@altosw.be>
To: Daniel Llorens <daniel.llorens@bluewin.ch>
Cc: Andy Wingo <wingo@pobox.com>, guile-user@gnu.org, guile-devel@gnu.org
Subject: Re: GNU Guile 2.1.7 released (beta)
Date: Thu, 2 Mar 2017 17:54:51 -0300 [thread overview]
Message-ID: <20170302175451.69916295@capac> (raw)
In-Reply-To: <F7A3D39F-1D0F-453F-95C4-0F366A274B1B@bluewin.ch>
[-- Attachment #1: Type: text/plain, Size: 824 bytes --]
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 "~200@y" 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 "~200@y" 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 #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
prev parent reply other threads:[~2017-03-02 20:54 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-18 10:31 GNU Guile 2.1.7 released (beta) Andy Wingo
2017-02-18 14:34 ` GNU Guile 2.1.7 released (beta), SOCK_NONBLOCK Matt Wette
2017-02-21 20:58 ` Andy Wingo
2017-02-18 17:40 ` GNU Guile 2.1.7 released (beta) Matt Wette
2017-02-18 17:48 ` Matt Wette
2017-02-23 18:54 ` Andy Wingo
2017-02-23 20:04 ` Mike Gran
2017-02-23 21:06 ` Andy Wingo
2017-02-24 0:52 ` Break-when [was GNU Guile 2.1.7 released (beta)] Matt Wette
2017-02-24 14:02 ` GNU Guile 2.1.7 released (beta) Andy Wingo
2017-02-24 17:46 ` Arne Babenhauserheide
2017-02-26 17:57 ` Andy Wingo
2017-02-27 19:32 ` Mike Gran
2017-02-27 20:30 ` Andy Wingo
2017-02-27 23:00 ` Thomas Morley
2017-02-28 8:31 ` Andy Wingo
2017-03-05 16:54 ` Thomas Morley
2017-03-01 18:04 ` Arne Babenhauserheide
2017-02-28 0:04 ` David Pirotte
2017-02-28 1:49 ` Daniel Llorens
2017-03-02 20:54 ` David Pirotte [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170302175451.69916295@capac \
--to=david@altosw.be \
--cc=daniel.llorens@bluewin.ch \
--cc=guile-devel@gnu.org \
--cc=guile-user@gnu.org \
--cc=wingo@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).