#| -*-Scheme-*-
-$Id: load.scm,v 14.97 2007/07/23 04:52:48 cph Exp $
+$Id: load.scm,v 14.98 2007/10/12 01:08:01 cph Exp $
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
syntax-table ;ignored
(let ((environment
(if (default-object? environment)
- (if (eq? *current-load-environment* 'NONE)
- (nearest-repl/environment)
- *current-load-environment*)
+ (current-load-environment)
(->environment environment)))
(purify?
(if (default-object? purify?)
(or (uri->pathname (current-eval-unit) #f)
(error condition-type:not-loading)))
+(define (current-load-environment)
+ (let ((env *current-load-environment*))
+ (if (eq? env 'NONE)
+ (nearest-repl/environment)
+ env)))
+
+(define (set-current-load-environment! env)
+ (if (not (eq? *current-load-environment* 'NONE))
+ (begin
+ (set! *current-load-environment* env)
+ unspecific)))
+
(define (load/push-hook! hook)
(if (not load/loading?) (error condition-type:not-loading))
(set! load/after-load-hooks (cons hook load/after-load-hooks))
#| -*-Scheme-*-
-$Id: rep.scm,v 14.68 2007/01/05 21:19:28 cph Exp $
+$Id: rep.scm,v 14.69 2007/10/12 01:08:02 cph Exp $
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
(define (ge environment)
(let ((environment (->environment environment 'GE)))
(set-repl/environment! (nearest-repl) environment)
+ (set-current-load-environment! environment)
environment))
(define (->environment object #!optional caller)
#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.626 2007/09/12 23:35:01 cph Exp $
+$Id: runtime.pkg,v 14.627 2007/10/12 01:08:03 cph Exp $
Copyright (C) 1986, 1987, 1988, 1989, 1990, 1991, 1992, 1993, 1994,
1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
built-in-object-file
condition-type:not-loading
current-eval-unit
+ current-load-environment
current-load-pathname
fasl-file?
fasload
system-uri
with-eval-unit
with-loader-base-uri)
+ (export (runtime rep)
+ set-current-load-environment!)
(initialization (initialize-package!)))
(define-package (runtime microcode-errors)