* module/ice-9/boot-9.scm (define-module): Add `expand' to the
situations, so that we ensure the current module changes at expand
time.
* module/ice-9/r6rs-libraries.scm (library): Expand the body within @@
expressions.
(syntax-case x ()
((_ (name name* ...) arg ...)
(with-syntax (((quoted-arg ...) (quotify #'(arg ...))))
- #'(eval-when (eval load compile)
+ #'(eval-when (eval load compile expand)
(let ((m (process-define-module
(list '(name name* ...) quoted-arg ...))))
(set-current-module m)
...
(re-export r ...)
(export e ...)
- body ...))))))))
+ (@@ (name name* ...) body)
+ ...))))))))
(define-syntax import
(lambda (stx)