Function: process-send-string

process-send-string is a function defined in process.c.

Signature

(process-send-string PROCESS STRING)

Documentation

Send PROCESS the contents of STRING as input.

PROCESS may be a process, a buffer, the name of a process or buffer, or nil, indicating the current buffer's process. If STRING is larger than the input buffer of the process (the length of which depends on the process connection type and the operating system), it is sent in several bunches. This may happen even for shorter strings. Output from processes can arrive in between bunches.

If PROCESS is a non-blocking network process that hasn't been fully set up yet, this function will block until socket setup has completed.

View in manual

Aliases

send-string

Source Code

// Defined in /usr/src/emacs/src/process.c
{
  CHECK_STRING (string);
  Lisp_Object proc = get_process (process);
  send_process (proc, SSDATA (string),
		SBYTES (string), string);
  return Qnil;
}