the code is not running in the context of the editor.
;;; -*-Scheme-*-
;;;
-;;; $Id: dos.scm,v 1.8 1993/02/25 02:42:56 gjr Exp $
+;;; $Id: dos.scm,v 1.9 1993/02/25 08:51:55 gjr Exp $
;;;
;;; Copyright (c) 1992-1993 Massachusetts Institute of Technology
;;;
(define (os/scheme-can-quit?)
true)
-(define (os/quit)
+(define (os/quit dir)
(without-interrupts
(lambda ()
- (with-real-working-directory-pathname
- (buffer-default-directory (current-buffer))
- %quit))))
+ (with-real-working-directory-pathname dir %quit))))
(define (with-real-working-directory-pathname dir thunk)
(let ((inside dir)
;;; -*-Scheme-*-
;;;
-;;; $Id: editor.scm,v 1.225 1993/02/25 02:43:42 gjr Exp $
+;;; $Id: editor.scm,v 1.226 1993/02/25 08:52:48 gjr Exp $
;;;
;;; Copyright (c) 1986, 1989-1993 Massachusetts Institute of Technology
;;;
(quit-editor-and (lambda () *the-non-printing-object*)))
(define (quit-scheme)
- (quit-editor-and (lambda () (os/quit) (edit))))
+ (let ((dir (buffer-default-directory (current-buffer))))
+ (quit-editor-and (lambda () (os/quit dir) (edit)))))
(define (quit-editor-and thunk)
(call-with-current-continuation
;;; -*-Scheme-*-
;;;
-;;; $Id: unix.scm,v 1.33 1993/02/25 02:43:08 gjr Exp $
+;;; $Id: unix.scm,v 1.34 1993/02/25 08:52:14 gjr Exp $
;;;
;;; Copyright (c) 1989-1993 Massachusetts Institute of Technology
;;;
(define (os/scheme-can-quit?)
(subprocess-job-control-available?))
-(define os/quit %quit)
\ No newline at end of file
+(define (os/quit dir)
+ dir ; ignored
+ (%quit))
\ No newline at end of file