Variable: inferior-tcl-buffer
inferior-tcl-buffer is a variable defined in tcl.el.gz.
Value
nil
Documentation
The current inferior-tcl process buffer.
MULTIPLE PROCESS SUPPORT
===========================================================================
To run multiple Tcl processes, you start the first up with
M-x inferior-tcl (inferior-tcl). It will be in a buffer named *inferior-tcl*.
Rename this buffer with C-x x r (rename-buffer). You may now start up a new
process with another M-x inferior-tcl (inferior-tcl). It will be in a new buffer,
named *inferior-tcl*. You can switch between the different process
buffers with C-x b (switch-to-buffer).
Commands that send text from source buffers to Tcl processes -- like
tcl-eval-defun or tcl-load-file -- have to choose a process to
send to, when you have more than one Tcl process around. This is
determined by the global variable inferior-tcl-buffer. Suppose you
have three inferior Lisps running:
Buffer Process
foo inferior-tcl
bar inferior-tcl<2>
*inferior-tcl* inferior-tcl<3>
If you do a M-x tcl-eval-defun (tcl-eval-defun) command on some Lisp source code, what
process do you send it to?
- If you're in a process buffer (foo, bar, or *inferior-tcl*),
you send it to that process.
- If you're in some other buffer (e.g., a source file), you
send it to the process attached to buffer inferior-tcl-buffer.
This process selection is performed by function inferior-tcl-proc.
Whenever M-x inferior-tcl (inferior-tcl) fires up a new process, it resets
inferior-tcl-buffer to be the new process's buffer. If you only run
one process, this does the right thing. If you run multiple
processes, you might need to set inferior-tcl-buffer to
whichever process buffer you want to use.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/tcl.el.gz
(defvar inferior-tcl-buffer nil
"The current `inferior-tcl' process buffer.
MULTIPLE PROCESS SUPPORT
===========================================================================
To run multiple Tcl processes, you start the first up with
\\[inferior-tcl]. It will be in a buffer named `*inferior-tcl*'.
Rename this buffer with \\[rename-buffer]. You may now start up a new
process with another \\[inferior-tcl]. It will be in a new buffer,
named `*inferior-tcl*'. You can switch between the different process
buffers with \\[switch-to-buffer].
Commands that send text from source buffers to Tcl processes -- like
`tcl-eval-defun' or `tcl-load-file' -- have to choose a process to
send to, when you have more than one Tcl process around. This is
determined by the global variable `inferior-tcl-buffer'. Suppose you
have three inferior Lisps running:
Buffer Process
foo inferior-tcl
bar inferior-tcl<2>
*inferior-tcl* inferior-tcl<3>
If you do a \\[tcl-eval-defun] command on some Lisp source code, what
process do you send it to?
- If you're in a process buffer (foo, bar, or *inferior-tcl*),
you send it to that process.
- If you're in some other buffer (e.g., a source file), you
send it to the process attached to buffer `inferior-tcl-buffer'.
This process selection is performed by function `inferior-tcl-proc'.
Whenever \\[inferior-tcl] fires up a new process, it resets
`inferior-tcl-buffer' to be the new process's buffer. If you only run
one process, this does the right thing. If you run multiple
processes, you might need to set `inferior-tcl-buffer' to
whichever process buffer you want to use.")