[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-racket dd2bbc3 090/191: Racket: fix for module comp
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-racket dd2bbc3 090/191: Racket: fix for module compilation for recent rackets |
Date: |
Sun, 1 Aug 2021 18:32:06 -0400 (EDT) |
branch: elpa/geiser-racket
commit dd2bbc39a0c2007440e7682c08284f27aeae03b6
Author: Jose Antonio Ortega Ruiz <jao@gnu.org>
Commit: Jose Antonio Ortega Ruiz <jao@gnu.org>
Racket: fix for module compilation for recent rackets
This one probably requires Racket 5.3, and incorporates some
parameterization to the module compilation and evaluation code in
Geiser's version of enter.rkt. I'm mostly mirroring what the latter
does, and i'm probably not completely understanding all corner cases,
so the two users of Geiser should keep an eye open for possible
breakage introduced by this patch.
---
geiser/enter.rkt | 16 +++++++++-------
1 file changed, 9 insertions(+), 7 deletions(-)
diff --git a/geiser/enter.rkt b/geiser/enter.rkt
index cb33a55..e996527 100644
--- a/geiser/enter.rkt
+++ b/geiser/enter.rkt
@@ -85,12 +85,13 @@
(current-continuation-marks))))
(if name
;; Module load:
- (let ([code (get-module-code path "compiled" compile
- (lambda (ext loader?)
- (load-extension ext)
- #f)
- #:notify (lambda (chosen)
- (notify re? chosen)))]
+ (let ([code (get-module-code
+ path "compiled"
+ (lambda (e)
+ (parameterize ([compile-enforce-module-constants #f])
+ (compile e)))
+ (lambda (ext loader?) (load-extension ext) #f)
+ #:notify (lambda (chosen) (notify re? chosen)))]
[path (normal-case-path
(simplify-path
(path->complete-path path
@@ -107,7 +108,8 @@
null))])
(add-paths! m (resolve-paths path)))
;; Evaluate the module:
- (eval code))
+ (parameterize ([current-module-declare-source path])
+ (eval code)))
;; Not a module:
(begin
(notify re? path)
- [nongnu] elpa/geiser-racket 05ff74e 025/191: Racket: better stack traces using errortrace, (continued)
- [nongnu] elpa/geiser-racket 05ff74e 025/191: Racket: better stack traces using errortrace, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 637c944 022/191: Displaying variable values in autodoc., Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 2f2fbdd 044/191: Racket: use EOT token for internal communications, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket dd9afbe 048/191: Racket: remote REPLs, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 8160d23 050/191: Partial work (connections working), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket f83efd0 061/191: Support for implementation-specific font lock keywords, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 2130465 065/191: Racket: showing submodules in module help, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 19e0bd6 094/191: Racket: reading into elisp-land the cache dir as needed, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 4ad7d89 082/191: Racket: eval geiser-eval's apply arguments properly, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 1964a0d 096/191: racket: reading into elisp-land the cache dir as needed, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket dd2bbc3 090/191: Racket: fix for module compilation for recent rackets,
Philip Kaludercic <=
- [nongnu] elpa/geiser-racket 51cd041 101/191: Image display functionality refactored to its own module, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket fd450c0 113/191: Racket: make sure stderr is flushed in REPL, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket ead1967 111/191: Racket: fix for module evaluation/entering, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket d986e3b 107/191: racket: correctly jump to symbols defined in .ss modules, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 46bde5a 115/191: Indentation for match-let, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 9fa09a8 129/191: Racket: fix for jump to manual for symbols not in the namespace, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 15b52ff 131/191: Fix for Racket compilation error jumping in REPL, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 85d1e6a 136/191: racket: ,gcd -> ,pwd, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket b4f158d 139/191: racket: module* and module+ denote submodules too, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket aa7ac2e 146/191: Missing require cl for case, Philip Kaludercic, 2021/08/01