diff options
| author | Richard M. Stallman | 1995-08-16 14:39:29 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1995-08-16 14:39:29 +0000 |
| commit | 349a5b097bef1b204f1b8e76dbe6d1d7633d83c0 (patch) | |
| tree | 8d87533d4d4ad22c8b7357b82e9b701e395acd8c | |
| parent | f0e30fe8382ef1f6697d69fff214ee7f08bd4043 (diff) | |
| download | emacs-349a5b097bef1b204f1b8e76dbe6d1d7633d83c0.tar.gz emacs-349a5b097bef1b204f1b8e76dbe6d1d7633d83c0.zip | |
(run-scheme): Use pop-to-buffer.
Add *scheme* to same-window-buffer-names.
| -rw-r--r-- | lisp/cmuscheme.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/cmuscheme.el b/lisp/cmuscheme.el index b2781085bae..3a3cd0bb07f 100644 --- a/lisp/cmuscheme.el +++ b/lisp/cmuscheme.el | |||
| @@ -185,10 +185,10 @@ Defaults to a regexp ignoring all inputs of 0, 1, or 2 letters.") | |||
| 185 | ;;;###autoload | 185 | ;;;###autoload |
| 186 | (defun run-scheme (cmd) | 186 | (defun run-scheme (cmd) |
| 187 | "Run an inferior Scheme process, input and output via buffer *scheme*. | 187 | "Run an inferior Scheme process, input and output via buffer *scheme*. |
| 188 | If there is a process already running in *scheme*, just switch to that buffer. | 188 | If there is a process already running in `*scheme*', switch to that buffer. |
| 189 | With argument, allows you to edit the command line (default is value | 189 | With argument, allows you to edit the command line (default is value |
| 190 | of scheme-program-name). Runs the hooks from inferior-scheme-mode-hook | 190 | of `scheme-program-name'). Runs the hooks `inferior-scheme-mode-hook' |
| 191 | \(after the comint-mode-hook is run). | 191 | \(after the `comint-mode-hook' is run). |
| 192 | \(Type \\[describe-mode] in the process buffer for a list of commands.)" | 192 | \(Type \\[describe-mode] in the process buffer for a list of commands.)" |
| 193 | 193 | ||
| 194 | (interactive (list (if current-prefix-arg | 194 | (interactive (list (if current-prefix-arg |
| @@ -201,8 +201,8 @@ of scheme-program-name). Runs the hooks from inferior-scheme-mode-hook | |||
| 201 | (inferior-scheme-mode))) | 201 | (inferior-scheme-mode))) |
| 202 | (setq scheme-program-name cmd) | 202 | (setq scheme-program-name cmd) |
| 203 | (setq scheme-buffer "*scheme*") | 203 | (setq scheme-buffer "*scheme*") |
| 204 | (switch-to-buffer "*scheme*")) | 204 | (pop-to-buffer "*scheme*")) |
| 205 | 205 | ;;;###autoload (add-hook 'same-window-buffer-names "*scheme*") | |
| 206 | 206 | ||
| 207 | (defun scheme-send-region (start end) | 207 | (defun scheme-send-region (start end) |
| 208 | "Send the current region to the inferior Scheme process." | 208 | "Send the current region to the inferior Scheme process." |