summaryrefslogtreecommitdiff
path: root/scheme/guile/geiser/evaluation.scm
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2010-06-06 05:36:43 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2010-06-06 05:36:43 +0200
commitf911e89822474bb57152ba6db861f1bd6be00460 (patch)
tree31426ac83f2671f24a4c289a20ebdf1cec6d6c70 /scheme/guile/geiser/evaluation.scm
parent4d8117a2e9b6dd3b969e84b72c8fbbfcd4e87c21 (diff)
downloadgeiser-guile-f911e89822474bb57152ba6db861f1bd6be00460.tar.gz
geiser-guile-f911e89822474bb57152ba6db861f1bd6be00460.tar.bz2
Guile: evaluation fixes (current git head).
Diffstat (limited to 'scheme/guile/geiser/evaluation.scm')
-rw-r--r--scheme/guile/geiser/evaluation.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/scheme/guile/geiser/evaluation.scm b/scheme/guile/geiser/evaluation.scm
index 4fec3ed..cd4d6a4 100644
--- a/scheme/guile/geiser/evaluation.scm
+++ b/scheme/guile/geiser/evaluation.scm
@@ -42,10 +42,12 @@
(define (ge:compile form module-name)
(let* ((module (or (find-module module-name) (current-module)))
(result #f)
- (form `(start-stack 'geiser-evaluation-stack ,form))
(ev (lambda ()
(set! result (call-with-values
- (lambda () (compile form #:env module))
+ (lambda ()
+ (compile (start-stack
+ 'geiser-evaluation-stack form)
+ #:env module))
(lambda vs (map object->string vs)))))))
(let ((output (with-output-to-string ev)))
(write `(,(cons 'result result) (output . ,output)))