((memq 'backtrace (debug-options-interface))
(run-hook before-backtrace-hook)
(newline cep)
+ (display "Backtrace:\n")
(display-backtrace (fluid-ref the-last-stack) cep)
(newline cep)
(run-hook after-backtrace-hook)))
;; (set-current-output-port outp)
;; (set-current-error-port errp)
+(define using-readline?
+ (let ((using-readline? (make-fluid)))
+ (make-procedure-with-setter
+ (lambda () (fluid-ref using-readline?))
+ (lambda (v) (fluid-set! using-readline? v)))))
+
;; this is just (scm-style-repl) with a wrapper to install and remove
;; signal handlers.
(define (top-repl)