From: Daniel Hartwig <mandyke@gmail.com>
To: Daniel Llorens <dll@bluewin.ch>
Cc: guile-user@gnu.org
Subject: Re: repl, abridged output?
Date: Tue, 4 Dec 2012 09:43:55 +0800 [thread overview]
Message-ID: <CAN3veRemHnXcTDZ1jP=nsLcn89Aos-aaq5hFCngp8QvBZhi62w@mail.gmail.com> (raw)
In-Reply-To: <EE581027-942A-4647-B3F2-23428F7181E8@bluewin.ch>
On 3 December 2012 20:39, Daniel Llorens <dll@bluewin.ch> 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 "~20@y" 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 …)
next prev parent reply other threads:[~2012-12-04 1:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-03 12:39 repl, abridged output? Daniel Llorens
2012-12-04 1:43 ` Daniel Hartwig [this message]
2012-12-04 9:28 ` Daniel Llorens
2012-12-04 12:59 ` Ludovic Courtès
2012-12-05 7:00 ` Nala Ginrut
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='CAN3veRemHnXcTDZ1jP=nsLcn89Aos-aaq5hFCngp8QvBZhi62w@mail.gmail.com' \
--to=mandyke@gmail.com \
--cc=dll@bluewin.ch \
--cc=guile-user@gnu.org \
/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).