summaryrefslogtreecommitdiff
path: root/src/guile/skribilo/evaluator.scm
diff options
context:
space:
mode:
Diffstat (limited to 'src/guile/skribilo/evaluator.scm')
-rw-r--r--src/guile/skribilo/evaluator.scm6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/guile/skribilo/evaluator.scm b/src/guile/skribilo/evaluator.scm
index abee2fd..8502d51 100644
--- a/src/guile/skribilo/evaluator.scm
+++ b/src/guile/skribilo/evaluator.scm
@@ -31,7 +31,9 @@
:autoload (skribilo reader) (*document-reader*)
:autoload (skribilo verify) (verify)
- :autoload (skribilo resolve) (resolve!))
+ :autoload (skribilo resolve) (resolve!)
+
+ :autoload (skribilo module) (*skribilo-user-module*))
(use-modules (skribilo utils syntax)
@@ -59,7 +61,7 @@
;; Evaluate EXPR, an arbitrary S-expression that may contain calls to the
;; markup functions defined in a markup package such as
;; `(skribilo package base)', e.g., `(bold "hello")'.
- (let ((result (eval expr (current-module))))
+ (let ((result (eval expr (*skribilo-user-module*))))
(if (ast? result)
(let ((file (source-property expr 'filename))