Mercurial > emacs
annotate lisp/cmuscheme.el @ 2247:2c7997f249eb
Add or correct keywords
author | Eric S. Raymond <esr@snark.thyrsus.com> |
---|---|
date | Thu, 18 Mar 1993 21:29:42 +0000 |
parents | bd3c525fa6fc |
children | 10e417efb12a |
rev | line source |
---|---|
2229
bd3c525fa6fc
Added standard library headers.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
1367
diff
changeset
|
1 ;;; cmuscheme.el --- Scheme process in a buffer. Adapted from tea.el. |
bd3c525fa6fc
Added standard library headers.
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
1367
diff
changeset
|
2 |
924 | 3 ;;; Copyright (C) 1988 Free Software Foundation, Inc. |
662
8a533acedb77
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
584
diff
changeset
|
4 |
798
b7932f859d4e
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
795
diff
changeset
|
5 ;; Author: Olin Shivers <olin.shivers@cs.cmu.edu> |
2247
2c7997f249eb
Add or correct keywords
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
2229
diff
changeset
|
6 ;; Keywords: processes, lisp |
795
c693d56ef36d
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
662
diff
changeset
|
7 |
924 | 8 ;; This file is part of GNU Emacs. |
9 | |
10 ;; GNU Emacs is free software; you can redistribute it and/or modify | |
11 ;; it under the terms of the GNU General Public License as published by | |
12 ;; the Free Software Foundation; either version 2, or (at your option) | |
13 ;; any later version. | |
14 | |
15 ;; GNU Emacs is distributed in the hope that it will be useful, | |
16 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 ;; GNU General Public License for more details. | |
19 | |
20 ;; You should have received a copy of the GNU General Public License | |
21 ;; along with GNU Emacs; see the file COPYING. If not, write to | |
22 ;; the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | |
795
c693d56ef36d
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
662
diff
changeset
|
23 |
c693d56ef36d
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
662
diff
changeset
|
24 ;;; Commentary: |
c693d56ef36d
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
662
diff
changeset
|
25 |
267 | 26 ;;; This is a customisation of comint-mode (see comint.el) |
27 ;;; | |
28 ;;; Written by Olin Shivers (olin.shivers@cs.cmu.edu). With bits and pieces | |
29 ;;; lifted from scheme.el, shell.el, clisp.el, newclisp.el, cobol.el, et al.. | |
30 ;;; 8/88 | |
31 ;;; | |
32 ;;; Please send me bug reports, bug fixes, and extensions, so that I can | |
33 ;;; merge them into the master source. | |
34 ;;; | |
35 ;;; The changelog is at the end of this file. | |
36 ;;; | |
37 ;;; NOTE: MIT Cscheme, when invoked with the -emacs flag, has a special user | |
38 ;;; interface that communicates process state back to the superior emacs by | |
39 ;;; outputting special control sequences. The gnumacs package, xscheme.el, has | |
40 ;;; lots and lots of special purpose code to read these control sequences, and | |
41 ;;; so is very tightly integrated with the cscheme process. The cscheme | |
42 ;;; interrupt handler and debugger read single character commands in cbreak | |
43 ;;; mode; when this happens, xscheme.el switches to special keymaps that bind | |
44 ;;; the single letter command keys to emacs functions that directly send the | |
45 ;;; character to the scheme process. Cmuscheme mode does *not* provide this | |
46 ;;; functionality. If you are a cscheme user, you may prefer to use the | |
47 ;;; xscheme.el/cscheme -emacs interaction. | |
48 ;;; | |
49 ;;; Here's a summary of the pros and cons, as I see them. | |
50 ;;; xscheme: Tightly integrated with inferior cscheme process! A few commands | |
51 ;;; not in cmuscheme. But. Integration is a bit of a hack. Input | |
52 ;;; history only keeps the immediately prior input. Bizarre | |
53 ;;; keybindings. | |
54 ;;; | |
55 ;;; cmuscheme: Not tightly integrated with inferior cscheme process. But. | |
56 ;;; Carefully integrated functionality with the entire suite of | |
57 ;;; comint-derived CMU process modes. Keybindings reminiscent of | |
58 ;;; Zwei and Hemlock. Good input history. A few commands not in | |
59 ;;; xscheme. | |
60 ;;; | |
61 ;;; It's a tradeoff. Pay your money; take your choice. If you use a Scheme | |
62 ;;; that isn't Cscheme, of course, there isn't a choice. Xscheme.el is *very* | |
63 ;;; Cscheme-specific; you must use cmuscheme.el. Interested parties are | |
64 ;;; invited to port xscheme functionality on top of comint mode... | |
65 | |
66 ;; YOUR .EMACS FILE | |
67 ;;============================================================================= | |
68 ;; Some suggestions for your .emacs file. | |
69 ;; | |
70 ;; ; If cmuscheme lives in some non-standard directory, you must tell emacs | |
71 ;; ; where to get it. This may or may not be necessary. | |
72 ;; (setq load-path (cons (expand-file-name "~jones/lib/emacs") load-path)) | |
73 ;; | |
74 ;; ; Autoload run-scheme from file cmuscheme.el | |
75 ;; (autoload 'run-scheme "cmuscheme" | |
76 ;; "Run an inferior Scheme process." | |
77 ;; t) | |
78 ;; | |
79 ;; ; Files ending in ".scm" are Scheme source, | |
80 ;; ; so put their buffers in scheme-mode. | |
81 ;; (setq auto-mode-alist | |
82 ;; (cons '("\\.scm$" . scheme-mode) | |
83 ;; auto-mode-alist)) | |
84 ;; | |
85 ;; ; Define C-c t to run my favorite command in inferior scheme mode: | |
86 ;; (setq cmuscheme-load-hook | |
87 ;; '((lambda () (define-key inferior-scheme-mode-map "\C-ct" | |
88 ;; 'favorite-cmd)))) | |
89 ;;; | |
90 ;;; Unfortunately, scheme.el defines run-scheme to autoload from xscheme.el. | |
91 ;;; This will womp your declaration to autoload run-scheme from cmuscheme.el | |
92 ;;; if you haven't loaded cmuscheme in before scheme. Three fixes: | |
93 ;;; - Put the autoload on your scheme mode hook and in your .emacs toplevel: | |
94 ;;; (setq scheme-mode-hook | |
95 ;;; '((lambda () (autoload 'run-scheme "cmuscheme" | |
96 ;;; "Run an inferior Scheme" t)))) | |
97 ;;; (autoload 'run-scheme "cmuscheme" "Run an inferior Scheme" t) | |
98 ;;; Now when scheme.el autoloads, it will restore the run-scheme autoload. | |
99 ;;; - Load cmuscheme.el in your .emacs: (load-library 'cmuscheme) | |
100 ;;; - Change autoload declaration in scheme.el to point to cmuscheme.el: | |
101 ;;; (autoload 'run-scheme "cmuscheme" "Run an inferior Scheme" t) | |
102 ;;; *or* just delete the autoload declaration from scheme.el altogether, | |
103 ;;; which will allow the autoload in your .emacs to have its say. | |
104 | |
795
c693d56ef36d
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
662
diff
changeset
|
105 ;;; Code: |
c693d56ef36d
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
662
diff
changeset
|
106 |
267 | 107 (require 'scheme) |
108 (require 'comint) | |
109 | |
110 ;;; INFERIOR SCHEME MODE STUFF | |
111 ;;;============================================================================ | |
112 | |
113 (defvar inferior-scheme-mode-hook nil | |
114 "*Hook for customising inferior-scheme mode.") | |
115 (defvar inferior-scheme-mode-map nil) | |
116 | |
117 (cond ((not inferior-scheme-mode-map) | |
118 (setq inferior-scheme-mode-map | |
119 (full-copy-sparse-keymap comint-mode-map)) | |
120 (define-key inferior-scheme-mode-map "\M-\C-x" ;gnu convention | |
121 'scheme-send-definition) | |
122 (define-key inferior-scheme-mode-map "\C-x\C-e" 'scheme-send-last-sexp) | |
123 (define-key inferior-scheme-mode-map "\C-c\C-l" 'scheme-load-file) | |
124 (define-key inferior-scheme-mode-map "\C-c\C-k" 'scheme-compile-file) | |
125 (scheme-mode-commands inferior-scheme-mode-map))) | |
126 | |
127 ;; Install the process communication commands in the scheme-mode keymap. | |
128 (define-key scheme-mode-map "\M-\C-x" 'scheme-send-definition);gnu convention | |
129 (define-key scheme-mode-map "\C-x\C-e" 'scheme-send-last-sexp);gnu convention | |
130 (define-key scheme-mode-map "\C-c\C-e" 'scheme-send-definition) | |
131 (define-key scheme-mode-map "\C-c\M-e" 'scheme-send-definition-and-go) | |
132 (define-key scheme-mode-map "\C-c\C-r" 'scheme-send-region) | |
133 (define-key scheme-mode-map "\C-c\M-r" 'scheme-send-region-and-go) | |
134 (define-key scheme-mode-map "\C-c\M-c" 'scheme-compile-definition) | |
135 (define-key scheme-mode-map "\C-c\C-c" 'scheme-compile-definition-and-go) | |
136 (define-key scheme-mode-map "\C-c\C-z" 'switch-to-scheme) | |
137 (define-key scheme-mode-map "\C-c\C-l" 'scheme-load-file) | |
138 (define-key scheme-mode-map "\C-c\C-k" 'scheme-compile-file) ;k for "kompile" | |
139 | |
1367
475a8122e0a5
(inferior-scheme-filter-regexp):
Richard M. Stallman <rms@gnu.org>
parents:
1355
diff
changeset
|
140 (defvar scheme-buffer) |
475a8122e0a5
(inferior-scheme-filter-regexp):
Richard M. Stallman <rms@gnu.org>
parents:
1355
diff
changeset
|
141 |
267 | 142 (defun inferior-scheme-mode () |
143 "Major mode for interacting with an inferior Scheme process. | |
144 | |
145 The following commands are available: | |
146 \\{inferior-scheme-mode-map} | |
147 | |
148 A Scheme process can be fired up with M-x run-scheme. | |
149 | |
150 Customisation: Entry to this mode runs the hooks on comint-mode-hook and | |
151 inferior-scheme-mode-hook (in that order). | |
152 | |
153 You can send text to the inferior Scheme process from other buffers containing | |
154 Scheme source. | |
155 switch-to-scheme switches the current buffer to the Scheme process buffer. | |
156 scheme-send-definition sends the current definition to the Scheme process. | |
157 scheme-compile-definition compiles the current definition. | |
158 scheme-send-region sends the current region to the Scheme process. | |
159 scheme-compile-region compiles the current region. | |
160 | |
161 scheme-send-definition-and-go, scheme-compile-definition-and-go, | |
162 scheme-send-region-and-go, and scheme-compile-region-and-go | |
163 switch to the Scheme process buffer after sending their text. | |
164 For information on running multiple processes in multiple buffers, see | |
165 documentation for variable scheme-buffer. | |
166 | |
167 Commands: | |
168 Return after the end of the process' output sends the text from the | |
169 end of process to point. | |
170 Return before the end of the process' output copies the sexp ending at point | |
171 to the end of the process' output, and sends it. | |
172 Delete converts tabs to spaces as it moves back. | |
173 Tab indents for Scheme; with argument, shifts rest | |
174 of expression rigidly with the current line. | |
175 C-M-q does Tab on each line starting within following expression. | |
176 Paragraphs are separated only by blank lines. Semicolons start comments. | |
177 If you accidentally suspend your process, use \\[comint-continue-subjob] | |
178 to continue it." | |
179 (interactive) | |
180 (comint-mode) | |
181 ;; Customise in inferior-scheme-mode-hook | |
182 (setq comint-prompt-regexp "^[^>]*>+ *") ; OK for cscheme, oaklisp, T,... | |
183 (scheme-mode-variables) | |
184 (setq major-mode 'inferior-scheme-mode) | |
185 (setq mode-name "Inferior Scheme") | |
186 (setq mode-line-process '(": %s")) | |
187 (use-local-map inferior-scheme-mode-map) | |
188 (setq comint-input-filter (function scheme-input-filter)) | |
189 (setq comint-input-sentinel (function ignore)) | |
190 (setq comint-get-old-input (function scheme-get-old-input)) | |
191 (run-hooks 'inferior-scheme-mode-hook)) | |
192 | |
1367
475a8122e0a5
(inferior-scheme-filter-regexp):
Richard M. Stallman <rms@gnu.org>
parents:
1355
diff
changeset
|
193 (defvar inferior-scheme-filter-regexp "\\`\\s *\\S ?\\S ?\\s *\\'" |
475a8122e0a5
(inferior-scheme-filter-regexp):
Richard M. Stallman <rms@gnu.org>
parents:
1355
diff
changeset
|
194 "*Input matching this regexp are not saved on the history list. |
475a8122e0a5
(inferior-scheme-filter-regexp):
Richard M. Stallman <rms@gnu.org>
parents:
1355
diff
changeset
|
195 Defaults to a regexp ignoring all inputs of 0, 1, or 2 letters.") |
475a8122e0a5
(inferior-scheme-filter-regexp):
Richard M. Stallman <rms@gnu.org>
parents:
1355
diff
changeset
|
196 |
267 | 197 (defun scheme-input-filter (str) |
198 "Don't save anything matching inferior-scheme-filter-regexp" | |
199 (not (string-match inferior-scheme-filter-regexp str))) | |
200 | |
201 (defun scheme-get-old-input () | |
202 "Snarf the sexp ending at point" | |
203 (save-excursion | |
204 (let ((end (point))) | |
205 (backward-sexp) | |
206 (buffer-substring (point) end)))) | |
207 | |
208 (defun scheme-args-to-list (string) | |
209 (let ((where (string-match "[ \t]" string))) | |
210 (cond ((null where) (list string)) | |
211 ((not (= where 0)) | |
212 (cons (substring string 0 where) | |
213 (scheme-args-to-list (substring string (+ 1 where) | |
214 (length string))))) | |
215 (t (let ((pos (string-match "[^ \t]" string))) | |
216 (if (null pos) | |
217 nil | |
218 (scheme-args-to-list (substring string pos | |
219 (length string))))))))) | |
220 | |
221 (defvar scheme-program-name "scheme" | |
222 "*Program invoked by the run-scheme command") | |
223 | |
224 ;;; Obsolete | |
225 (defun scheme (&rest foo) | |
226 "Use run-scheme" | |
227 (interactive) | |
228 (message "Use run-scheme") | |
229 (ding)) | |
230 | |
231 (defun run-scheme (cmd) | |
232 "Run an inferior Scheme process, input and output via buffer *scheme*. | |
233 If there is a process already running in *scheme*, just switch to that buffer. | |
234 With argument, allows you to edit the command line (default is value | |
235 of scheme-program-name). Runs the hooks from inferior-scheme-mode-hook | |
236 \(after the comint-mode-hook is run). | |
237 \(Type \\[describe-mode] in the process buffer for a list of commands.)" | |
238 | |
239 (interactive (list (if current-prefix-arg | |
240 (read-string "Run Scheme: " scheme-program-name) | |
241 scheme-program-name))) | |
242 (if (not (comint-check-proc "*scheme*")) | |
243 (let ((cmdlist (scheme-args-to-list cmd))) | |
244 (set-buffer (apply 'make-comint "scheme" (car cmdlist) | |
245 nil (cdr cmdlist))) | |
246 (inferior-scheme-mode))) | |
247 (setq scheme-buffer "*scheme*") | |
248 (switch-to-buffer "*scheme*")) | |
249 | |
250 | |
251 (defun scheme-send-region (start end) | |
252 "Send the current region to the inferior Scheme process." | |
253 (interactive "r") | |
254 (comint-send-region (scheme-proc) start end) | |
255 (comint-send-string (scheme-proc) "\n")) | |
256 | |
257 (defun scheme-send-definition () | |
258 "Send the current definition to the inferior Scheme process." | |
259 (interactive) | |
260 (save-excursion | |
261 (end-of-defun) | |
262 (let ((end (point))) | |
263 (beginning-of-defun) | |
264 (scheme-send-region (point) end)))) | |
265 | |
266 (defun scheme-send-last-sexp () | |
267 "Send the previous sexp to the inferior Scheme process." | |
268 (interactive) | |
269 (scheme-send-region (save-excursion (backward-sexp) (point)) (point))) | |
270 | |
271 (defvar scheme-compile-exp-command "(compile '%s)" | |
272 "*Template for issuing commands to compile arbitrary Scheme expressions.") | |
273 | |
274 (defun scheme-compile-region (start end) | |
1355 | 275 "Compile the current region in the inferior Scheme process. |
267 | 276 \(A BEGIN is wrapped around the region: (BEGIN <region>))" |
277 (interactive "r") | |
278 (comint-send-string (scheme-proc) (format scheme-compile-exp-command | |
279 (format "(begin %s)" | |
280 (buffer-substring start end)))) | |
281 (comint-send-string (scheme-proc) "\n")) | |
282 | |
283 (defun scheme-compile-definition () | |
284 "Compile the current definition in the inferior Scheme process." | |
285 (interactive) | |
286 (save-excursion | |
287 (end-of-defun) | |
288 (let ((end (point))) | |
289 (beginning-of-defun) | |
290 (scheme-compile-region (point) end)))) | |
291 | |
292 (defun switch-to-scheme (eob-p) | |
293 "Switch to the scheme process buffer. | |
294 With argument, positions cursor at end of buffer." | |
295 (interactive "P") | |
296 (if (get-buffer scheme-buffer) | |
297 (pop-to-buffer scheme-buffer) | |
298 (error "No current process buffer. See variable scheme-buffer.")) | |
299 (cond (eob-p | |
300 (push-mark) | |
301 (goto-char (point-max))))) | |
302 | |
303 (defun scheme-send-region-and-go (start end) | |
1355 | 304 "Send the current region to the inferior Scheme process. |
305 Then switch to the process buffer." | |
267 | 306 (interactive "r") |
307 (scheme-send-region start end) | |
308 (switch-to-scheme t)) | |
309 | |
310 (defun scheme-send-definition-and-go () | |
1355 | 311 "Send the current definition to the inferior Scheme. |
312 Then switch to the process buffer." | |
267 | 313 (interactive) |
314 (scheme-send-definition) | |
315 (switch-to-scheme t)) | |
316 | |
317 (defun scheme-compile-definition-and-go () | |
1355 | 318 "Compile the current definition in the inferior Scheme. |
319 Then switch to the process buffer." | |
267 | 320 (interactive) |
321 (scheme-compile-definition) | |
322 (switch-to-scheme t)) | |
323 | |
324 (defun scheme-compile-region-and-go (start end) | |
1355 | 325 "Compile the current region in the inferior Scheme. |
326 Then switch to the process buffer." | |
267 | 327 (interactive "r") |
328 (scheme-compile-region start end) | |
329 (switch-to-scheme t)) | |
330 | |
331 (defvar scheme-source-modes '(scheme-mode) | |
332 "*Used to determine if a buffer contains Scheme source code. | |
333 If it's loaded into a buffer that is in one of these major modes, it's | |
334 considered a scheme source file by scheme-load-file and scheme-compile-file. | |
335 Used by these commands to determine defaults.") | |
336 | |
337 (defvar scheme-prev-l/c-dir/file nil | |
1355 | 338 "Caches the last (directory . file) pair. |
339 Caches the last pair used in the last scheme-load-file or | |
267 | 340 scheme-compile-file command. Used for determining the default in the |
341 next one.") | |
342 | |
343 (defun scheme-load-file (file-name) | |
344 "Load a Scheme file into the inferior Scheme process." | |
345 (interactive (comint-get-source "Load Scheme file: " scheme-prev-l/c-dir/file | |
346 scheme-source-modes t)) ; T because LOAD | |
347 ; needs an exact name | |
348 (comint-check-source file-name) ; Check to see if buffer needs saved. | |
349 (setq scheme-prev-l/c-dir/file (cons (file-name-directory file-name) | |
350 (file-name-nondirectory file-name))) | |
351 (comint-send-string (scheme-proc) (concat "(load \"" | |
352 file-name | |
353 "\"\)\n"))) | |
354 | |
355 (defun scheme-compile-file (file-name) | |
356 "Compile a Scheme file in the inferior Scheme process." | |
357 (interactive (comint-get-source "Compile Scheme file: " | |
358 scheme-prev-l/c-dir/file | |
359 scheme-source-modes | |
360 nil)) ; NIL because COMPILE doesn't | |
361 ; need an exact name. | |
362 (comint-check-source file-name) ; Check to see if buffer needs saved. | |
363 (setq scheme-prev-l/c-dir/file (cons (file-name-directory file-name) | |
364 (file-name-nondirectory file-name))) | |
365 (comint-send-string (scheme-proc) (concat "(compile-file \"" | |
366 file-name | |
367 "\"\)\n"))) | |
368 | |
369 | |
370 (defvar scheme-buffer nil "*The current scheme process buffer. | |
371 | |
372 MULTIPLE PROCESS SUPPORT | |
373 =========================================================================== | |
374 Cmuscheme.el supports, in a fairly simple fashion, running multiple Scheme | |
375 processes. To run multiple Scheme processes, you start the first up with | |
376 \\[run-scheme]. It will be in a buffer named *scheme*. Rename this buffer | |
377 with \\[rename-buffer]. You may now start up a new process with another | |
378 \\[run-scheme]. It will be in a new buffer, named *scheme*. You can | |
379 switch between the different process buffers with \\[switch-to-buffer]. | |
380 | |
381 Commands that send text from source buffers to Scheme processes -- | |
382 like scheme-send-definition or scheme-compile-region -- have to choose a | |
383 process to send to, when you have more than one Scheme process around. This | |
384 is determined by the global variable scheme-buffer. Suppose you | |
385 have three inferior Schemes running: | |
386 Buffer Process | |
387 foo scheme | |
388 bar scheme<2> | |
389 *scheme* scheme<3> | |
390 If you do a \\[scheme-send-definition-and-go] command on some Scheme source | |
391 code, what process do you send it to? | |
392 | |
393 - If you're in a process buffer (foo, bar, or *scheme*), | |
394 you send it to that process. | |
395 - If you're in some other buffer (e.g., a source file), you | |
396 send it to the process attached to buffer scheme-buffer. | |
397 This process selection is performed by function scheme-proc. | |
398 | |
399 Whenever \\[run-scheme] fires up a new process, it resets scheme-buffer | |
400 to be the new process's buffer. If you only run one process, this will | |
401 do the right thing. If you run multiple processes, you can change | |
402 scheme-buffer to another process buffer with \\[set-variable]. | |
403 | |
404 More sophisticated approaches are, of course, possible. If you find youself | |
405 needing to switch back and forth between multiple processes frequently, | |
406 you may wish to consider ilisp.el, a larger, more sophisticated package | |
407 for running inferior Lisp and Scheme processes. The approach taken here is | |
408 for a minimal, simple implementation. Feel free to extend it.") | |
409 | |
410 (defun scheme-proc () | |
411 "Returns the current scheme process. See variable scheme-buffer." | |
412 (let ((proc (get-buffer-process (if (eq major-mode 'inferior-scheme-mode) | |
413 (current-buffer) | |
414 scheme-buffer)))) | |
415 (or proc | |
416 (error "No current process. See variable scheme-buffer")))) | |
417 | |
418 | |
419 ;;; Do the user's customisation... | |
420 | |
421 (defvar cmuscheme-load-hook nil | |
422 "This hook is run when cmuscheme is loaded in. | |
423 This is a good place to put keybindings.") | |
424 | |
425 (run-hooks 'cmuscheme-load-hook) | |
426 | |
427 | |
428 ;;; CHANGE LOG | |
429 ;;; =========================================================================== | |
430 ;;; 8/88 Olin | |
431 ;;; Created. | |
432 ;;; | |
433 ;;; 2/15/89 Olin | |
434 ;;; Removed -emacs flag from process invocation. It's only useful for | |
435 ;;; cscheme, and makes cscheme assume it's running under xscheme.el, | |
436 ;;; which messes things up royally. A bug. | |
437 ;;; | |
438 ;;; 5/22/90 Olin | |
439 ;;; - Upgraded to use comint-send-string and comint-send-region. | |
440 ;;; - run-scheme now offers to let you edit the command line if | |
441 ;;; you invoke it with a prefix-arg. M-x scheme is redundant, and | |
442 ;;; has been removed. | |
443 ;;; - Explicit references to process "scheme" have been replaced with | |
444 ;;; (scheme-proc). This allows better handling of multiple process bufs. | |
445 ;;; - Added scheme-send-last-sexp, bound to C-x C-e. A gnu convention. | |
446 ;;; - Have not added process query facility a la cmulisp.el's lisp-show-arglist | |
447 ;;; and friends, but interested hackers might find a useful application | |
448 ;;; of this facility. | |
449 ;;; | |
450 ;;; 3/12/90 Olin | |
451 ;;; - scheme-load-file and scheme-compile-file no longer switch-to-scheme. | |
452 ;;; Tale suggested this. | |
584 | 453 |
454 (provide 'cmuscheme) | |
662
8a533acedb77
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
584
diff
changeset
|
455 |
8a533acedb77
*** empty log message ***
Eric S. Raymond <esr@snark.thyrsus.com>
parents:
584
diff
changeset
|
456 ;;; cmuscheme.el ends here |