summaryrefslogtreecommitdiff
path: root/scheme/guile/geiser
diff options
context:
space:
mode:
Diffstat (limited to 'scheme/guile/geiser')
-rw-r--r--scheme/guile/geiser/emacs.scm5
1 files changed, 4 insertions, 1 deletions
diff --git a/scheme/guile/geiser/emacs.scm b/scheme/guile/geiser/emacs.scm
index 66320ec..f2f3d45 100644
--- a/scheme/guile/geiser/emacs.scm
+++ b/scheme/guile/geiser/emacs.scm
@@ -41,6 +41,7 @@
#:use-module (system base compile)
#:use-module (system vm program)
#:use-module (ice-9 debugger utils)
+ #:use-module (ice-9 pretty-print)
#:use-module ((geiser introspection) :renamer (symbol-prefix-proc 'ge:)))
(define (make-result result output)
@@ -144,6 +145,8 @@
(define (ge:macroexpand form . all)
(let ((all (and (not (null? all)) (car all))))
- ((if all macroexpand macroexpand-1) form)))
+ (with-output-to-string
+ (lambda ()
+ (pretty-print ((if all macroexpand macroexpand-1) form))))))
;;; emacs.scm ends here