;;; -*-Scheme-*-
;;;
-;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/bufset.scm,v 1.9 1991/05/10 04:51:41 cph Exp $
+;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/bufset.scm,v 1.10 1992/04/07 08:39:01 cph Exp $
;;;
-;;; Copyright (c) 1986, 1989-91 Massachusetts Institute of Technology
+;;; Copyright (c) 1986, 1989-92 Massachusetts Institute of Technology
;;;
;;; This material was developed by the Scheme project at the
;;; Massachusetts Institute of Technology, Department of
(let ((buffer
(make-buffer name
(ref-variable editor-default-mode)
- (if (within-editor?)
+ (if within-editor?
(buffer-default-directory (current-buffer))
(working-directory-pathname)))))
(string-table-put! (bufferset-names bufferset) name buffer)
;;; -*-Scheme-*-
;;;
-;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/editor.scm,v 1.219 1992/04/04 13:07:07 cph Exp $
+;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/v7/src/edwin/editor.scm,v 1.220 1992/04/07 08:38:33 cph Exp $
;;;
;;; Copyright (c) 1986, 1989-92 Massachusetts Institute of Technology
;;;
(define (edit . args)
(call-with-current-continuation
(lambda (continuation)
- (cond ((within-editor?)
+ (cond (within-editor?
(error "edwin: Editor already running"))
((not edwin-editor)
(apply create-editor args))
unspecific)))))
(fluid-let ((editor-abort continuation)
(current-editor edwin-editor)
+ (within-editor? true)
(editor-thread (current-thread))
(editor-thread-root-continuation)
(editor-initial-threads '())
message))))))))
(define (edwin . args) (apply edit args))
-(define (within-editor?) (not (unassigned? current-editor)))
-(define editor-abort)
(define edwin-editor false)
+(define editor-abort)
(define current-editor)
+(define within-editor? false)
(define editor-thread)
(define editor-thread-root-continuation)
(define editor-initial-threads)