commit 469fb3e0b8f5e5136c36f152c2800fed6b3e96b0
parent e930471f52c206fe2bbcbc01638ccc0da7a55582
Author: Georges Dupéron <georges.duperon@gmail.com>
Date: Thu, 18 Aug 2016 01:57:44 +0200
Merge branch 'fix-cover'
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/lang/reader.rkt b/lang/reader.rkt
@@ -49,14 +49,18 @@
(reader chr (narrow-until-prompt in) src line col pos))
(define/with-syntax (mod nam lang (modbeg . body))
- (parameterize ([current-namespace (variable-reference->namespace
+ (eval-syntax (replace-top-loc #'(expand #'orig-mod)
+ (syntax-source #'here)
+ #'orig-mod)
+ (variable-reference->namespace (#%variable-reference)))
+ #;(parameterize ([current-namespace (variable-reference->namespace
(#%variable-reference))])
(expand #'orig-mod)))
+
;; quasisyntax/loc Necessary so that the generated code has the correct srcloc
(replace-top-loc
#`(mod nam lang
(modbeg
- ;(quote-syntax orig-mod)
(module* test racket/base
(require repltest/private/run-interactions)
;; TODO: set-port-next-location! for (open-input-string …)