summaryrefslogtreecommitdiff
path: root/scheme/racket/geiser/user.rkt
diff options
context:
space:
mode:
authorJose Antonio Ortega Ruiz <jao@gnu.org>2013-06-27 19:23:35 +0200
committerJose Antonio Ortega Ruiz <jao@gnu.org>2013-06-27 19:23:35 +0200
commit096dfb84f6ca774c7f241b9ea446b510bbbccaf5 (patch)
treeb0997e6490fd02641a615b70ab276e0d71b47b94 /scheme/racket/geiser/user.rkt
parentbc3d5897f789de9afdf5d4f7aab48df8566bebf9 (diff)
downloadgeiser-guile-096dfb84f6ca774c7f241b9ea446b510bbbccaf5.tar.gz
geiser-guile-096dfb84f6ca774c7f241b9ea446b510bbbccaf5.tar.bz2
Racket: not loading errortrace by default
The new submodules and errortrace interact badly, for what i've seen. In particular, even with the submodule[+*] loading correctly, its namespace doesn't have all identifiers bound, and new ones seem to appear in the bindings lists (things like a.1 or b.2, when a and b are the actual identifiers defined inside the module). Since moreover someone mentioned in the devel ML that errortrace is in general terms buggy, i guess we can leave without it for the time being.
Diffstat (limited to 'scheme/racket/geiser/user.rkt')
-rw-r--r--scheme/racket/geiser/user.rkt13
1 files changed, 6 insertions, 7 deletions
diff --git a/scheme/racket/geiser/user.rkt b/scheme/racket/geiser/user.rkt
index d570a39..d8ac0b2 100644
--- a/scheme/racket/geiser/user.rkt
+++ b/scheme/racket/geiser/user.rkt
@@ -29,8 +29,8 @@
(define (do-enter mod name)
(visit-module mod)
- (current-namespace (module->namespace mod))
- (last-entered name))
+ (last-entered name)
+ (current-namespace (module->namespace mod)))
(define (file-mod? mod)
(and (list? mod)
@@ -61,9 +61,6 @@
[(submod-path mod) => (lambda (m) (do-enter m m))]
[else (module-error stx mod)]))
-(define orig-loader (current-load/use-compiled))
-(define geiser-loader (module-loader orig-loader))
-
(define (geiser-eval)
(define geiser-main (module->namespace 'geiser))
(define (eval-here form) (eval form geiser-main))
@@ -120,9 +117,11 @@
(define (geiser-prompt-read prompt)
(make-repl-reader (geiser-read prompt)))
+(define (geiser-loader) (module-loader (current-load/use-compiled)))
+
(define (init-geiser-repl)
(compile-enforce-module-constants #f)
- (current-load/use-compiled geiser-loader)
+ (current-load/use-compiled (geiser-loader))
(preload-help)
(current-prompt-read (geiser-prompt-read geiser-prompt))
(current-print maybe-print-image))
@@ -132,7 +131,7 @@
(current-input-port in)
(current-output-port out)
(current-error-port out)
- (current-load/use-compiled geiser-loader)
+ (current-load/use-compiled (geiser-loader))
(current-prompt-read (geiser-prompt-read geiser-prompt))
(current-print maybe-print-image)]
(preload-help)