Racket: show images with print, write and display
commit0dbd605e631beea9b46f526deda2a7d05928c49f
authorJose Antonio Ortega Ruiz <jao@gnu.org>
Mon, 29 Dec 2014 01:46:12 +0000 (29 02:46 +0100)
committerJose Antonio Ortega Ruiz <jao@gnu.org>
Mon, 29 Dec 2014 01:46:12 +0000 (29 02:46 +0100)
tree7dea18a9634381e94c36bcd574911ec9b9299417
parenta1c1f48872801ed47ec056fffc585011a068907b
Racket: show images with print, write and display

Up to now, we were only displaying images when printed as values by the
REPL, but not when image values were explicitly print-ed, write-d or
display-ed.  This patch solves that problem by installing (semi)
appropriate port-{print,write,display}-handler.  This is still and
incomplete solution in that those handlers (as well as the already
installed current-print-handler) don't recurse over a value's structure
and won't produce images embedded in other data structures, as discussed
in issue #49.
scheme/racket/geiser/images.rkt
scheme/racket/geiser/user.rkt