mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-15 16:20:17 +02:00
* Make sure, re-entering the dynamic scope of an eval statement will
restore the latest selected module.
This commit is contained in:
parent
25ba37dffa
commit
2e9c835db9
2 changed files with 8 additions and 0 deletions
|
@ -3836,6 +3836,8 @@ restore_environment (void *data)
|
|||
{
|
||||
SCM pair = SCM_PACK (data);
|
||||
SCM old_module = SCM_CDR (pair);
|
||||
SCM new_module = scm_selected_module ();
|
||||
SCM_SETCAR (pair, new_module);
|
||||
scm_select_module (old_module);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue