summaryrefslogtreecommitdiff
path: root/module/system/repl/command.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2009-10-22 22:42:45 +0200
committerLudovic Courtès <ludo@gnu.org>2009-10-22 22:57:25 +0200
commit84012ef4b1188770d8087ad82289dbdc27a3adfb (patch)
tree921ae75a286fbca46f9aec9593885963aa4aa521 /module/system/repl/command.scm
parent6bb891dc6137885182f86aa147dba428e1149a63 (diff)
downloadguile-84012ef4b1188770d8087ad82289dbdc27a3adfb.tar.gz
Fix typos leading to unbound variable references.
* module/ice-9/session.scm (help): Fix unbound reference to `env'. * module/system/vm/program.scm (program-property): Fix typo. * module/system/vm/frame.scm: Add missing `#:use-module (system vm objcode)'. * module/system/repl/command.scm (guile:load): New. (load): Use either `primitive-load' or `load'. * module/srfi/srfi-18.scm (thread-sleep!): Fix typo. * module/srfi/srfi-19.scm: Use `(ice-9 rdelim)'. (date->broken-down-time, priv:year-day, priv:char->int): Fix typo. (time-*->time-*, time-*->time-*!): Fix reference to unbound variable `caller'. * module/oop/goops.scm (bound-check-get): Fix typo. * module/language/glil/compile-assembly.scm (glil->assembly): Fix typo. * module/language/glil.scm (parse-glil): Fix typo. * module/language/ecmascript/base.scm (object->value/string, object->value/number, ->number): Fix typos. * module/language/assembly/disassemble.scm (disassemble-free-vars): Fix typo.
Diffstat (limited to 'module/system/repl/command.scm')
-rw-r--r--module/system/repl/command.scm10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/system/repl/command.scm b/module/system/repl/command.scm
index 66e2fb401..1da2d6c6f 100644
--- a/module/system/repl/command.scm
+++ b/module/system/repl/command.scm
@@ -267,16 +267,16 @@ Import modules / List those imported."
(for-each puts (map module-name (module-uses (current-module))))
(for-each use args))))
+(define guile:load load)
(define-meta-command (load repl file . opts)
"load FILE
Load a file in the current module.
-f Load source file (see `compile')"
- (let* ((file (->string file))
- (objcode (if (memq #:f opts)
- (apply load-source-file file opts)
- (apply load-file file opts))))
- (vm-load (repl-vm repl) objcode)))
+ (let ((file (->string file)))
+ (if (memq #:f opts)
+ (primitive-load file)
+ (guile:load file))))
(define-meta-command (binding repl)
"binding