;;; Requires C-Scheme release 5 or later
;;; Changes to Control-G handler require runtime version 13.85 or later
-;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/etc/xscheme.el,v 1.18 1988/06/07 16:43:10 cph Exp $
+;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/etc/xscheme.el,v 1.19 1988/08/12 02:41:22 cph Exp $
(require 'scheme)
\f
xscheme-process-filter:simple-action)
(?v xscheme-write-value
xscheme-process-filter:string-action)
- (?w cd
+ (?w xscheme-cd
xscheme-process-filter:string-action)
(?z xscheme-display-process-buffer
xscheme-process-filter:simple-action)
("[Visiting environment]" . "[Evaluator]")
("[Environment Inspector]" . "[Where]"))
"An alist which maps the Scheme command interpreter type to a print string.")
+
+(defun xscheme-cd (directory-string)
+ (save-excursion
+ (set-buffer (xscheme-process-buffer))
+ (cd directory-string)))
\f
(defun xscheme-prompt-for-confirmation (prompt-string)
(xscheme-send-char (if (y-or-n-p prompt-string) ?y ?n)))