Function: exit-scheme-interaction-mode

exit-scheme-interaction-mode is an interactive and byte-compiled function defined in xscheme.el.gz.

Signature

(exit-scheme-interaction-mode)

Documentation

Take buffer out of scheme interaction mode.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/xscheme.el.gz
(defun exit-scheme-interaction-mode ()
  "Take buffer out of scheme interaction mode."
  (interactive)
  (if (not (derived-mode-p 'scheme-interaction-mode))
      (error "Buffer not in scheme interaction mode"))
  (funcall xscheme-previous-mode)
  (let ((process (get-buffer-process (current-buffer))))
    (when process
      (remove-function (process-sentinel process) #'xscheme-process-sentinel)
      (remove-function (process-filter process) #'xscheme-process-filter))))