[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#9664: (format #t "~3tX") fails in the REPL
From: |
Andy Wingo |
Subject: |
bug#9664: (format #t "~3tX") fails in the REPL |
Date: |
Wed, 05 Oct 2011 20:18:26 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
On Mon 03 Oct 2011 21:59, address@hidden writes:
> The ~t formater is not working according to spec in the REPL.
> Try this for instance:
>
> (format #t "~10tA~20tB~30tC~40tD")
>
> will print:
>
> AB C D
>
> Although it works from a script or when outputing to a sting.
>
> Also, it works after a newline.
It appears that there is some difference between the readline-enabled
reader and the normal one.
$ meta/guile -q
scheme@(guile-user)> (port-column (current-output-port))
$1 = 21
It is 0 with the readline reader.
I don't think the set-port-column! fix is right. Why is the newline not
being chomped after the `(read)', I wonder?
Andy
--
http://wingolog.org/