Function: make-comint

make-comint is an autoloaded and byte-compiled function defined in comint.el.gz.

Signature

(make-comint NAME PROGRAM &optional STARTFILE &rest SWITCHES)

Documentation

Make a Comint process NAME in a buffer, running PROGRAM.

The name of the buffer is made by surrounding NAME with *s. PROGRAM should be either a string denoting an executable program to create via start-file-process, or a cons pair of the form (HOST . SERVICE) denoting a TCP connection to be opened via open-network-stream. If there is already a running process in that buffer, it is not restarted. Optional third arg STARTFILE is the name of a file, whose contents are sent to the process as its initial input.

If PROGRAM is a string, any more args are arguments to PROGRAM.

Returns the (possibly newly created) process buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/comint.el.gz
;;;###autoload
(defun make-comint (name program &optional startfile &rest switches)
  "Make a Comint process NAME in a buffer, running PROGRAM.
The name of the buffer is made by surrounding NAME with `*'s.
PROGRAM should be either a string denoting an executable program to create
via `start-file-process', or a cons pair of the form (HOST . SERVICE) denoting
a TCP connection to be opened via `open-network-stream'.  If there is already
a running process in that buffer, it is not restarted.  Optional third arg
STARTFILE is the name of a file, whose contents are sent to the
process as its initial input.

If PROGRAM is a string, any more args are arguments to PROGRAM.

Returns the (possibly newly created) process buffer."
  (apply #'make-comint-in-buffer name nil program startfile switches))