aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1994-10-18 06:34:44 +0000
committerRichard M. Stallman1994-10-18 06:34:44 +0000
commita03385143cceaa8d68f69fbe969b9042fe7b35b4 (patch)
tree9b563536d7c7571a5ebf4f8294c4d61c95a9425d /lisp
parente175bda252b8395d6c915eb0c68bbb05a1462981 (diff)
downloademacs-a03385143cceaa8d68f69fbe969b9042fe7b35b4.tar.gz
emacs-a03385143cceaa8d68f69fbe969b9042fe7b35b4.zip
(run-scheme): Add autoload cookie.
(scheme): Function deleted.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/cmuscheme.el37
1 files changed, 1 insertions, 36 deletions
diff --git a/lisp/cmuscheme.el b/lisp/cmuscheme.el
index 68a1bae4145..b2781085bae 100644
--- a/lisp/cmuscheme.el
+++ b/lisp/cmuscheme.el
@@ -64,35 +64,6 @@
64;;; Cscheme-specific; you must use cmuscheme.el. Interested parties are 64;;; Cscheme-specific; you must use cmuscheme.el. Interested parties are
65;;; invited to port xscheme functionality on top of comint mode... 65;;; invited to port xscheme functionality on top of comint mode...
66 66
67;; YOUR .EMACS FILE
68;;=============================================================================
69;; Some suggestions for your .emacs file.
70;;
71;; ; Autoload run-scheme from file cmuscheme.el
72;; (autoload 'run-scheme "cmuscheme"
73;; "Run an inferior Scheme process."
74;; t)
75;;
76;; ; Define C-c t to run my favorite command in inferior scheme mode:
77;; (setq cmuscheme-load-hook
78;; '((lambda () (define-key inferior-scheme-mode-map "\C-ct"
79;; 'favorite-cmd))))
80;;;
81;;; Unfortunately, scheme.el defines run-scheme to autoload from xscheme.el.
82;;; This will womp your declaration to autoload run-scheme from cmuscheme.el
83;;; if you haven't loaded cmuscheme in before scheme. Three fixes:
84;;; - Put the autoload on your scheme mode hook and in your .emacs toplevel:
85;;; (setq scheme-mode-hook
86;;; '((lambda () (autoload 'run-scheme "cmuscheme"
87;;; "Run an inferior Scheme" t))))
88;;; (autoload 'run-scheme "cmuscheme" "Run an inferior Scheme" t)
89;;; Now when scheme.el autoloads, it will restore the run-scheme autoload.
90;;; - Load cmuscheme.el in your .emacs: (load-library 'cmuscheme)
91;;; - Change autoload declaration in scheme.el to point to cmuscheme.el:
92;;; (autoload 'run-scheme "cmuscheme" "Run an inferior Scheme" t)
93;;; *or* just delete the autoload declaration from scheme.el altogether,
94;;; which will allow the autoload in your .emacs to have its say.
95
96;;; Code: 67;;; Code:
97 68
98(require 'scheme) 69(require 'scheme)
@@ -211,13 +182,7 @@ Defaults to a regexp ignoring all inputs of 0, 1, or 2 letters.")
211(defvar scheme-program-name "scheme" 182(defvar scheme-program-name "scheme"
212 "*Program invoked by the run-scheme command") 183 "*Program invoked by the run-scheme command")
213 184
214;;; Obsolete 185;;;###autoload
215(defun scheme (&rest foo)
216 "Use run-scheme"
217 (interactive)
218 (message "Use run-scheme")
219 (ding))
220
221(defun run-scheme (cmd) 186(defun run-scheme (cmd)
222 "Run an inferior Scheme process, input and output via buffer *scheme*. 187 "Run an inferior Scheme process, input and output via buffer *scheme*.
223If there is a process already running in *scheme*, just switch to that buffer. 188If there is a process already running in *scheme*, just switch to that buffer.