aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCharles A. Roelli2018-12-22 17:14:36 +0100
committerCharles A. Roelli2018-12-22 17:14:36 +0100
commit24ddea074a2e61f7accde60cdf941ba67b1ce82a (patch)
tree478dd0169c6f2cec90deb772c0ddac0670e94143 /src
parent29310168310e807d289e789a1134df95c366d133 (diff)
downloademacs-24ddea074a2e61f7accde60cdf941ba67b1ce82a.tar.gz
emacs-24ddea074a2e61f7accde60cdf941ba67b1ce82a.zip
Improve process doc. with respect to handling of large input (Bug#33191)
* src/process.c (Fprocess_send_region, Fprocess_send_string): Document that process input longer than the process input buffer may be split into bunches. Remove an outdated reference to a 500 character split boundary. * doc/lispref/processes.texi (Asynchronous Processes): Remove mention of "stray character injections" in PTY processes. See also the comment about ICANON in src/sysdep.c, function child_setup_tty.
Diffstat (limited to 'src')
-rw-r--r--src/process.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/process.c b/src/process.c
index b0a327229c6..e306b2ae9ec 100644
--- a/src/process.c
+++ b/src/process.c
@@ -6456,9 +6456,11 @@ DEFUN ("process-send-region", Fprocess_send_region, Sprocess_send_region,
6456PROCESS may be a process, a buffer, the name of a process or buffer, or 6456PROCESS may be a process, a buffer, the name of a process or buffer, or
6457nil, indicating the current buffer's process. 6457nil, indicating the current buffer's process.
6458Called from program, takes three arguments, PROCESS, START and END. 6458Called from program, takes three arguments, PROCESS, START and END.
6459If the region is more than 500 characters long, 6459If the region is larger than the input buffer of the process (the
6460it is sent in several bunches. This may happen even for shorter regions. 6460length of which depends on the process connection type and the
6461Output from processes can arrive in between bunches. 6461operating system), it is sent in several bunches. This may happen
6462even for shorter regions. Output from processes can arrive in between
6463bunches.
6462 6464
6463If PROCESS is a non-blocking network process that hasn't been fully 6465If PROCESS is a non-blocking network process that hasn't been fully
6464set up yet, this function will block until socket setup has completed. */) 6466set up yet, this function will block until socket setup has completed. */)
@@ -6489,9 +6491,10 @@ DEFUN ("process-send-string", Fprocess_send_string, Sprocess_send_string,
6489 doc: /* Send PROCESS the contents of STRING as input. 6491 doc: /* Send PROCESS the contents of STRING as input.
6490PROCESS may be a process, a buffer, the name of a process or buffer, or 6492PROCESS may be a process, a buffer, the name of a process or buffer, or
6491nil, indicating the current buffer's process. 6493nil, indicating the current buffer's process.
6492If STRING is more than 500 characters long, 6494If STRING is larger than the input buffer of the process (the length
6493it is sent in several bunches. This may happen even for shorter strings. 6495of which depends on the process connection type and the operating
6494Output from processes can arrive in between bunches. 6496system), it is sent in several bunches. This may happen even for
6497shorter strings. Output from processes can arrive in between bunches.
6495 6498
6496If PROCESS is a non-blocking network process that hasn't been fully 6499If PROCESS is a non-blocking network process that hasn't been fully
6497set up yet, this function will block until socket setup has completed. */) 6500set up yet, this function will block until socket setup has completed. */)