diff options
author | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-03-01 20:40:22 +0100 |
---|---|---|
committer | Jose Antonio Ortega Ruiz <jao@gnu.org> | 2009-03-01 20:40:22 +0100 |
commit | acde425e824c401c8db14be9ec56c4b6fe22dd8d (patch) | |
tree | a9d12b3374ac500f6686c8ac1266403a9299e2ca | |
parent | 221e64ea8d6f2ce62dc88bbe74a7fa9d7a369c41 (diff) | |
download | geiser-guile-acde425e824c401c8db14be9ec56c4b6fe22dd8d.tar.gz geiser-guile-acde425e824c401c8db14be9ec56c4b6fe22dd8d.tar.bz2 |
Macro-expand commands.
-rw-r--r-- | geiser/emacs.scm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/geiser/emacs.scm b/geiser/emacs.scm index 66320ec..f2f3d45 100644 --- a/geiser/emacs.scm +++ b/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 |