Next: , Previous: , Up: Creating Asynchronous Subprocesses   [Index]


I.1.3.3 start-process

Function: start-process name buffer-or-name program &rest args

This function is a higher-level wrapper around ‘make-process’, exposing an interface that is similar to call-process. It creates a new asynchronous subprocess and starts the specified PROGRAM running in it. It returns a process object that stands for the new subprocess in Lisp.

NAME

The argument NAME specifies the name for the process object; as with ‘make-process’, it is modified if necessary to make it unique.

BUFFER-OR-NAME

The buffer BUFFER-OR-NAME is the buffer to associate with the process.

PROGRAM

If PROGRAM is ‘nil’, Emacs opens a new pseudoterminal (pty) and associates its input and output with BUFFER-OR-NAME, without creating a subprocess. In that case, the remaining arguments ARGS are ignored.

ARGS

The rest of ARGS are strings that specify command line arguments for the subprocess.