diff options
| author | Jesper Harder | 2004-09-22 17:31:03 +0000 |
|---|---|---|
| committer | Jesper Harder | 2004-09-22 17:31:03 +0000 |
| commit | a2052295e82e3aecedd747a754bc0b8d46e4ddcd (patch) | |
| tree | 41b95be7a60a19a2a8c18c47498b17bf7a1b761f /lisp/progmodes | |
| parent | 082b4369640d125d3ae83f51ca567110473b85b2 (diff) | |
| download | emacs-a2052295e82e3aecedd747a754bc0b8d46e4ddcd.tar.gz emacs-a2052295e82e3aecedd747a754bc0b8d46e4ddcd.zip | |
* progmodes/tcl.el (inferior-tcl): Use pop-to-buffer.
Diffstat (limited to 'lisp/progmodes')
| -rw-r--r-- | lisp/progmodes/tcl.el | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/lisp/progmodes/tcl.el b/lisp/progmodes/tcl.el index ac370cc1030..6965dea9fc1 100644 --- a/lisp/progmodes/tcl.el +++ b/lisp/progmodes/tcl.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; tcl.el --- Tcl code editing commands for Emacs | 1 | ;;; tcl.el --- Tcl code editing commands for Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1994,98,1999,2000,01,02,2003 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1994,98,1999,2000,01,02,2003,2004 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Maintainer: FSF | 5 | ;; Maintainer: FSF |
| 6 | ;; Author: Tom Tromey <tromey@redhat.com> | 6 | ;; Author: Tom Tromey <tromey@redhat.com> |
| @@ -1104,15 +1104,13 @@ See documentation for function `inferior-tcl-mode' for more information." | |||
| 1104 | (list (if current-prefix-arg | 1104 | (list (if current-prefix-arg |
| 1105 | (read-string "Run Tcl: " tcl-application) | 1105 | (read-string "Run Tcl: " tcl-application) |
| 1106 | tcl-application))) | 1106 | tcl-application))) |
| 1107 | (if (not (comint-check-proc "*inferior-tcl*")) | 1107 | (unless (comint-check-proc "*inferior-tcl*") |
| 1108 | (progn | 1108 | (set-buffer (apply (function make-comint) "inferior-tcl" cmd nil |
| 1109 | (set-buffer (apply (function make-comint) "inferior-tcl" cmd nil | 1109 | tcl-command-switches)) |
| 1110 | tcl-command-switches)) | 1110 | (inferior-tcl-mode)) |
| 1111 | (inferior-tcl-mode))) | 1111 | (set (make-local-variable 'tcl-application) cmd) |
| 1112 | (make-local-variable 'tcl-application) | ||
| 1113 | (setq tcl-application cmd) | ||
| 1114 | (setq inferior-tcl-buffer "*inferior-tcl*") | 1112 | (setq inferior-tcl-buffer "*inferior-tcl*") |
| 1115 | (switch-to-buffer "*inferior-tcl*")) | 1113 | (pop-to-buffer "*inferior-tcl*")) |
| 1116 | 1114 | ||
| 1117 | (defalias 'run-tcl 'inferior-tcl) | 1115 | (defalias 'run-tcl 'inferior-tcl) |
| 1118 | 1116 | ||