summaryrefslogtreecommitdiff
path: root/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
commite43cfa849ea8f361365bdea6b751c0f44467aa1a (patch)
tree7c6ce8fc471eaae2fd2743b62fb178768f7ac7bb /geiser/evaluation.scm
parent9b414b443347e13b7aec843299596fcac5e453ac (diff)
downloadgeiser-guile-e43cfa849ea8f361365bdea6b751c0f44467aa1a.tar.gz
geiser-guile-e43cfa849ea8f361365bdea6b751c0f44467aa1a.tar.bz2
Guile: evaluation fixes (current git head).
Diffstat (limited to 'geiser/evaluation.scm')
-rw-r--r--geiser/evaluation.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/geiser/evaluation.scm b/geiser/evaluation.scm
index 4fec3ed..cd4d6a4 100644
--- a/geiser/evaluation.scm
+++ b/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)))