diff options
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/progmodes/tcl.el | 16 |
2 files changed, 11 insertions, 9 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 39a2f3eb9fe..3c8cbbdf1af 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2004-09-20 Jesper Harder <harder@ifa.au.dk> | ||
| 2 | |||
| 3 | * progmodes/tcl.el (inferior-tcl): Use pop-to-buffer. | ||
| 4 | |||
| 1 | 2004-09-21 Luc Teirlinck <teirllm@auburn.edu> | 5 | 2004-09-21 Luc Teirlinck <teirllm@auburn.edu> |
| 2 | 6 | ||
| 3 | * subr.el (after-change-major-mode-hook): Doc fix. | 7 | * subr.el (after-change-major-mode-hook): Doc fix. |
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 | ||