comparison doc/lispref/processes.texi @ 102810:91395f53da2f

(Filter Functions): Suggest how to handle output batches.
author Chong Yidong <cyd@stupidchicken.com>
date Wed, 01 Apr 2009 03:51:14 +0000
parents 0f4ba7f17aa0
children b269cabac20c
comparison
equal deleted inserted replaced
102809:6b605b539280 102810:91395f53da2f
1303 The output to the function may come in chunks of any size. A program 1303 The output to the function may come in chunks of any size. A program
1304 that produces the same output twice in a row may send it as one batch of 1304 that produces the same output twice in a row may send it as one batch of
1305 200 characters one time, and five batches of 40 characters the next. If 1305 200 characters one time, and five batches of 40 characters the next. If
1306 the filter looks for certain text strings in the subprocess output, make 1306 the filter looks for certain text strings in the subprocess output, make
1307 sure to handle the case where one of these strings is split across two 1307 sure to handle the case where one of these strings is split across two
1308 or more batches of output. 1308 or more batches of output; one way to do this is to insert the
1309 received text into a temporary buffer, which can then be searched.
1309 1310
1310 @defun set-process-filter process filter 1311 @defun set-process-filter process filter
1311 This function gives @var{process} the filter function @var{filter}. If 1312 This function gives @var{process} the filter function @var{filter}. If
1312 @var{filter} is @code{nil}, it gives the process no filter. 1313 @var{filter} is @code{nil}, it gives the process no filter.
1313 @end defun 1314 @end defun