Hi! Daniel Hartwig <mand...@gmail.com> skribis:
> On 3 December 2012 20:39, Daniel Llorens <d...@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 …) Indeed. Perhaps there should be a standard, simple way to do that. Would you like to propose a patch? :-) Ludo’.