Change documentation for scheme-mode to indicate extra stuff for
authorChris Hanson <org/chris-hanson/cph>
Mon, 7 Dec 1987 09:38:00 +0000 (09:38 +0000)
committerChris Hanson <org/chris-hanson/cph>
Mon, 7 Dec 1987 09:38:00 +0000 (09:38 +0000)
controlling the inferior process.  Undo some earlier organizational
changes because xscheme no longer uses the hooks that were provided.

etc/scheme.el

index 0f8a43ef1b0fce82651c340ad1bb483bc6560bbf..2edc8c3691fe71940783b2db0ef92fa60c8e51c3 100644 (file)
 ;; of special forms.  Probably the code should be merged at some point 
 ;; so that there is sharing between both libraries.
 
-;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/etc/scheme.el,v 1.3 1987/12/05 19:56:04 cph Exp $
+;;; $Header: /Users/cph/tmp/foo/mit-scheme/mit-scheme/etc/scheme.el,v 1.4 1987/12/07 09:38:00 cph Exp $
 
 (provide 'scheme)
 \f
 (defvar scheme-mode-syntax-table nil "")
-(defvar scheme-mode-abbrev-table nil "")
-
 (if (not scheme-mode-syntax-table)
     (let ((i 0))
       (setq scheme-mode-syntax-table (make-syntax-table))
       (modify-syntax-entry ?@ "'   ")
       (modify-syntax-entry ?# "' 14")
       (modify-syntax-entry ?\\ "\\   ")))
-
-(define-abbrev-table 'scheme-mode-abbrev-table ())
 \f
+(defvar scheme-mode-abbrev-table nil "")
+(define-abbrev-table 'scheme-mode-abbrev-table ())
+
 (defun scheme-mode-variables ()
   (set-syntax-table scheme-mode-syntax-table)
   (setq local-abbrev-table scheme-mode-abbrev-table)
   (define-key map "\177" 'backward-delete-char-untabify)
   (define-key map "\e\C-q" 'scheme-indent-sexp))
 
-(defvar scheme-mode-map (make-sparse-keymap))
-(scheme-mode-commands scheme-mode-map)
-
-(defun scheme-mode (&optional keymap)
+(defvar scheme-mode-map nil)
+(if (not scheme-mode-map)
+    (progn
+      (setq scheme-mode-map (make-sparse-keymap))
+      (scheme-mode-commands scheme-mode-map)))
+\f
+(defun scheme-mode ()
   "Major mode for editing Scheme code.
+Editing commands are similar to those of lisp-mode.
+
+In addition, if an inferior Scheme process is running, some additional
+commands will be defined, for evaluating expressions and controlling
+the interpreter, and the state of the process will be displayed in the
+modeline of all Scheme buffers.  The names of commands that interact
+with the Scheme process start with \"xscheme-\".  For more information
+see the documentation for xscheme-interaction-mode.
+
 Commands:
 Delete converts tabs to spaces as it moves back.
 Blank lines separate paragraphs.  Semicolons start comments.
@@ -125,12 +136,12 @@ Entry to this mode calls the value of scheme-mode-hook
 if that value is non-nil."
   (interactive)
   (kill-all-local-variables)
-  (scheme-mode-initialize-internal (or keymap scheme-mode-map))
+  (scheme-mode-initialize)
   (scheme-mode-variables)
   (run-hooks 'scheme-mode-hook))
 
-(defun scheme-mode-initialize-internal (keymap)
-  (use-local-map keymap)
+(defun scheme-mode-initialize ()
+  (use-local-map scheme-mode-map)
   (setq major-mode 'scheme-mode)
   (setq mode-name "Scheme"))