mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-29 22:40:34 +02:00
load modules from within a known environment
* module/ice-9/boot-9.scm (try-module-autoload): Init the module excursion with a fresh user module.
This commit is contained in:
parent
225dbf6fd4
commit
393929957d
1 changed files with 3 additions and 0 deletions
|
@ -2598,6 +2598,9 @@ module '(ice-9 q) '(make-q q-length))}."
|
||||||
(with-fluids ((current-reader #f))
|
(with-fluids ((current-reader #f))
|
||||||
(save-module-excursion
|
(save-module-excursion
|
||||||
(lambda ()
|
(lambda ()
|
||||||
|
;; The initial environment when loading a module is a fresh
|
||||||
|
;; user module.
|
||||||
|
(set-current-module (make-fresh-user-module))
|
||||||
(if version
|
(if version
|
||||||
(load (find-versioned-module
|
(load (find-versioned-module
|
||||||
dir-hint name version %load-path))
|
dir-hint name version %load-path))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue