[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/geiser-racket aa40a48 106/191: racket: fix re-loading of m
From: |
Philip Kaludercic |
Subject: |
[nongnu] elpa/geiser-racket aa40a48 106/191: racket: fix re-loading of modules with submodules (e.g. plai-typed) |
Date: |
Sun, 1 Aug 2021 18:32:09 -0400 (EDT) |
branch: elpa/geiser-racket
commit aa40a48849854d31199c0d4306ad9d510a20ee4a
Author: Jose Antonio Ortega Ruiz <jao@gnu.org>
Commit: Jose Antonio Ortega Ruiz <jao@gnu.org>
racket: fix re-loading of modules with submodules (e.g. plai-typed)
Resolved module path can now be, besides symbols, a list representing
a submodule. When deciding whether what we are loading in enter's
current loader is a module or not, we have now to take that bit into
account.
---
geiser/enter.rkt | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/geiser/enter.rkt b/geiser/enter.rkt
index 924ef59..b2e233f 100644
--- a/geiser/enter.rkt
+++ b/geiser/enter.rkt
@@ -88,7 +88,7 @@
(define ((enter-load/use-compiled orig re?) path name)
(when (inhibit-eval)
(raise (make-exn:fail "namespace not found" (current-continuation-marks))))
- (if name
+ (if (and name (or (not (list? name)) (car name))) ;; submodule names are
lists
;; Module load:
(let* ([code (get-module-code
path "compiled"
@@ -102,7 +102,7 @@
[path (normal-case-path (simplify-path path))])
(define-values (ts real-path) (get-timestamp path))
(add-paths! (make-mod name path ts code) (resolve-paths path))
- (parameterize ([current-module-declare-source path]) (eval code)))
+ (parameterize ([current-module-declare-source real-path]) (eval code)))
;; Not a module:
(begin (notify re? path) (orig path name))))
@@ -142,5 +142,4 @@
(enter-load/use-compiled orig #f)]
[current-module-declare-name rpath]
[current-module-declare-source actual-path])
- ((enter-load/use-compiled orig #t)
- npath (mod-name mod)))))))))
+ ((enter-load/use-compiled orig #t) npath (mod-name mod)))))))))
- [nongnu] elpa/geiser-racket fa2f509 099/191: Merge branch 'master' of git.sv.gnu.org:/srv/git/geiser, (continued)
- [nongnu] elpa/geiser-racket fa2f509 099/191: Merge branch 'master' of git.sv.gnu.org:/srv/git/geiser, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket ed810eb 072/191: Revert "Bug fix: don't intern symbols read by scheme reader", Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket d8fd4cc 073/191: A couple of uses of intern replaced by make-symbol, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 0f063c5 087/191: ,cd for Racket REPL, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket cf3e1bd 092/191: Racket: configurable image cache directory, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 2d5e638 078/191: Racket: ', enter "foo"' as a synonym of ', enter (file "foo")', Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket aff860d 098/191: Merge branch 'master' of git.sv.gnu.org:/srv/git/geiser, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 216067a 104/191: Racket: new option to specify network interface for REPL server, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 01caa95 120/191: Another take at the fix (files with >, bleh), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 2097d2b 110/191: Little clean-ups to the indentation rules, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket aa40a48 106/191: racket: fix re-loading of modules with submodules (e.g. plai-typed),
Philip Kaludercic <=
- [nongnu] elpa/geiser-racket ba98c40 119/191: Racket: accepting spaces within comint's prompt, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket fad35c6 125/191: Racket: pre-loading help also in remote REPLs, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket efb71a2 127/191: Racket: ensuring the first C-c C-d C-i works, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket fd12248 128/191: Racket: correct detection of manual lookup failures, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket e469ace 134/191: For crazy guys that use (define/match [foo bar] ...), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 0c9d6c3 055/191: Guile reconnected (but not debuggable (yet)), Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket fbbd3ab 060/191: Superior schemes, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 58657b4 056/191: Better EOT token for more robust communication, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket fd14450 062/191: Support for implementation-specific font lock keywords, Philip Kaludercic, 2021/08/01
- [nongnu] elpa/geiser-racket 309ca6d 069/191: Racket: more information in symbol documentation, Philip Kaludercic, 2021/08/01