summaryrefslogtreecommitdiff
path: root/scheme/racket/geiser/eval.rkt
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2012-09-02 20:19:36 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2012-09-02 20:19:36 +0200
commit8f2e4ba17b704965f3a35d1d0a312dec31800862 (patch)
treef77861b30ff1a031292eed0104d195559fcc99cd /scheme/racket/geiser/eval.rkt
parentb05120e5872382528c73416046d4e19cdb1bc88f (diff)
downloadgeiser-guile-8f2e4ba17b704965f3a35d1d0a312dec31800862.tar.gz
geiser-guile-8f2e4ba17b704965f3a35d1d0a312dec31800862.tar.bz2
racket: displaying images also during evaluations
Diffstat (limited to 'scheme/racket/geiser/eval.rkt')
-rw-r--r--scheme/racket/geiser/eval.rkt8
1 files changed, 4 insertions, 4 deletions
diff --git a/scheme/racket/geiser/eval.rkt b/scheme/racket/geiser/eval.rkt
index 26ad959..9b510cf 100644
--- a/scheme/racket/geiser/eval.rkt
+++ b/scheme/racket/geiser/eval.rkt
@@ -1,6 +1,6 @@
;;; eval.rkt -- evaluation
-;; Copyright (C) 2009, 2010, 2011 Jose Antonio Ortega Ruiz
+;; Copyright (C) 2009, 2010, 2011, 2012 Jose Antonio Ortega Ruiz
;; This program is free software; you can redistribute it and/or
;; modify it under the terms of the Modified BSD License. You should
@@ -18,7 +18,7 @@
make-repl-reader)
-(require geiser/enter geiser/modules)
+(require geiser/enter geiser/modules geiser/images)
(require errortrace/errortrace-lib)
(define last-result (void))
@@ -37,10 +37,10 @@
(define (write-value v)
(with-output-to-string
- (lambda () (write v))))
+ (lambda () (maybe-write-image v))))
(define (set-last-result . vs)
- (set! last-result `((result ,@(map write-value vs)))))
+ (set! last-result `((result ,@(map write-value vs)))))
(define (call-with-result thunk)
(set-last-result (void))