tweak to ensure-batch-mode!
authorAndy Wingo <wingo@pobox.com>
Sat, 26 Jun 2010 20:18:37 +0000 (22:18 +0200)
committerAndy Wingo <wingo@pobox.com>
Sat, 26 Jun 2010 20:18:37 +0000 (22:18 +0200)
* module/ice-9/boot-9.scm (ensure-batch-mode!): Fix to be correct
  regarding dynamic extent (so far as this hack goes).

module/ice-9/boot-9.scm

index bd5625d..c735816 100644 (file)
@@ -2698,7 +2698,7 @@ module '(ice-9 q) '(make-q q-length))}."
 ;; to abort to the outermost prompt, and call a thunk there.
 ;;
 (define (ensure-batch-mode!)
-  (fluid-set! *repl-level* #f))
+  (set! batch-mode? (lambda () #t)))
 
 (define (quit . args)
   (apply throw 'quit args))