#| -*-Scheme-*-
-$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/edwin.pkg,v 1.91 1992/05/12 15:45:40 mhwu Exp $
+$Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/edwin.pkg,v 1.92 1992/05/21 17:59:25 cph Exp $
Copyright (c) 1989-92 Massachusetts Institute of Technology
(files "intmod")
(parent (edwin))
(export (edwin)
+ buffer/inferior-cmdl
current-repl-buffer
edwin-command$inferior-cmdl-abort-nearest
edwin-command$inferior-cmdl-abort-previous
inferior-repl-eval-expression
inferior-repl-eval-region
initialize-inferior-repls!
- kill-buffer-inferior-repl
start-inferior-repl!))
(define-package (edwin bochser)
;;; -*-Scheme-*-
;;;
-;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/intmod.scm,v 1.46 1992/04/08 17:57:45 cph Exp $
+;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/intmod.scm,v 1.47 1992/05/21 17:59:33 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-92 Massachusetts Institute of Technology
;;;
(let ((port (buffer-interface-port (current-buffer))))
(start-continuation-browser
port
- (or (let ((cmdl (port/inferior-cmdl port)))
- (and (repl? cmdl)
- (repl/condition cmdl)))
- (thread-continuation (port/thread port)))))))
+ (let ((cmdl (port/inferior-cmdl port)))
+ (if (repl? cmdl)
+ (repl/condition cmdl)
+ (thread-continuation (port/thread port))))))))
(define (start-continuation-browser port condition)
(let ((browser (continuation-browser condition)))
(apply continuation arguments)))))
(select-buffer browser)))
+(define (buffer/inferior-cmdl buffer)
+ (let ((port (buffer-interface-port buffer)))
+ (and port
+ (port/inferior-cmdl port))))
+
(define (port/inferior-cmdl port)
(let ((thread (current-thread))
(cmdl false))