aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorEli Zaretskii2019-12-21 10:47:31 +0200
committerEli Zaretskii2019-12-21 10:47:31 +0200
commitcc78faee7d23dd0433ba537818a68cbd20fa52a3 (patch)
tree88f370cc83f7e2bead825886035af7e2905535b5 /etc
parent0f7e3430bba031a6c5f45e0afe2ddcac197603cf (diff)
downloademacs-cc78faee7d23dd0433ba537818a68cbd20fa52a3.tar.gz
emacs-cc78faee7d23dd0433ba537818a68cbd20fa52a3.zip
Allow control of data amount read from subprocess in one chunk
* src/process.c (syms_of_process) <read-process-output-max>: New variable. (read_process_output): Use it instead of the hard-coded constant 4096. (Bug#38561) Use SAFE_ALLOCA to support large buffers for reading process output. * etc/NEWS: Mention 'read-process-output-max'.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index cf4e705a52f..7a7f3f204b0 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2724,6 +2724,14 @@ overlays. This is only done on 'display' properties that have the
2724** 'process-contact' now takes an optional NO-BLOCK argument to allow 2724** 'process-contact' now takes an optional NO-BLOCK argument to allow
2725not waiting for a process to be set up. 2725not waiting for a process to be set up.
2726 2726
2727---
2728** New variable 'read-process-output-max' controls sub-process throughput.
2729This variable determines how many bytes can be read from a sub-process
2730in one read operation. The default, 4096 bytes, was previously a
2731hard-coded constant. Setting it to a larger value might enhance
2732throughput of reading from sub-processes that produces vast
2733(megabytes) amounts of data in one go.
2734
2727+++ 2735+++
2728** The new user option 'quit-window-hook' is now run first when 2736** The new user option 'quit-window-hook' is now run first when
2729executing the 'quit-window' command. 2737executing the 'quit-window' command.