Use (here-namespace) for autoloads, (not `hidden-namespace' which is more of a user workspace thing).

This commit is contained in:
Eli Barzilay 2011-08-22 16:24:02 -04:00
parent 01a591392e
commit 9091fddc52

View File

@ -23,7 +23,7 @@
(define (autoloaded? sym) (hash-ref autoloaded-specs sym #f))
(define-syntax-rule (defautoload libspec id ...)
(begin (define (id . args)
(set! id (parameterize ([current-namespace hidden-namespace])
(set! id (parameterize ([current-namespace (here-namespace)])
(dynamic-require 'libspec 'id)))
(hash-set! autoloaded-specs 'libspec #t)
(hash-set! autoloaded-specs 'id #t)