comparison src/process.c @ 82365:e5a68f18fcb9

Merge from emacs--rel--22 Revision: emacs@sv.gnu.org/emacs--devo--0--patch-851
author Miles Bader <miles@gnu.org>
date Mon, 13 Aug 2007 13:41:28 +0000
parents b98604865ea0 1677cf1c2509
children 5b644ae74c91 424b655804ca
comparison
equal deleted inserted replaced
82364:0c34fdde692c 82365:e5a68f18fcb9
2778 2778
2779 :filter FILTER -- Install FILTER as the process filter. 2779 :filter FILTER -- Install FILTER as the process filter.
2780 2780
2781 :filter-multibyte BOOL -- If BOOL is non-nil, strings given to the 2781 :filter-multibyte BOOL -- If BOOL is non-nil, strings given to the
2782 process filter are multibyte, otherwise they are unibyte. 2782 process filter are multibyte, otherwise they are unibyte.
2783 If this keyword is not specified, the strings are multibyte iff 2783 If this keyword is not specified, the strings are multibyte if
2784 `default-enable-multibyte-characters' is non-nil. 2784 `default-enable-multibyte-characters' is non-nil.
2785 2785
2786 :sentinel SENTINEL -- Install SENTINEL as the process sentinel. 2786 :sentinel SENTINEL -- Install SENTINEL as the process sentinel.
2787 2787
2788 :log LOG -- Install LOG as the server process log function. This 2788 :log LOG -- Install LOG as the server process log function. This
3915 it specifies a fractional number of seconds to wait. 3915 it specifies a fractional number of seconds to wait.
3916 3916
3917 If optional fourth arg JUST-THIS-ONE is non-nil, only accept output 3917 If optional fourth arg JUST-THIS-ONE is non-nil, only accept output
3918 from PROCESS, suspending reading output from other processes. 3918 from PROCESS, suspending reading output from other processes.
3919 If JUST-THIS-ONE is an integer, don't run any timers either. 3919 If JUST-THIS-ONE is an integer, don't run any timers either.
3920 Return non-nil iff we received any output before the timeout expired. */) 3920 Return non-nil if we received any output before the timeout expired. */)
3921 (process, seconds, millisec, just_this_one) 3921 (process, seconds, millisec, just_this_one)
3922 register Lisp_Object process, seconds, millisec, just_this_one; 3922 register Lisp_Object process, seconds, millisec, just_this_one;
3923 { 3923 {
3924 int secs, usecs = 0; 3924 int secs, usecs = 0;
3925 3925
4247 4247
4248 If WAIT_FOR_CELL is a cons cell, wait until its car is non-nil 4248 If WAIT_FOR_CELL is a cons cell, wait until its car is non-nil
4249 (and gobble terminal input into the buffer if any arrives). 4249 (and gobble terminal input into the buffer if any arrives).
4250 4250
4251 If WAIT_PROC is specified, wait until something arrives from that 4251 If WAIT_PROC is specified, wait until something arrives from that
4252 process. The return value is true iff we read some input from 4252 process. The return value is true if we read some input from
4253 that process. 4253 that process.
4254 4254
4255 If JUST_WAIT_PROC is non-nil, handle only output from WAIT_PROC 4255 If JUST_WAIT_PROC is non-nil, handle only output from WAIT_PROC
4256 (suspending output from other processes). A negative value 4256 (suspending output from other processes). A negative value
4257 means don't run any timers either. 4257 means don't run any timers either.
4258 4258
4259 If WAIT_PROC is specified, then the function returns true iff we 4259 If WAIT_PROC is specified, then the function returns true if we
4260 received input from that process before the timeout elapsed. 4260 received input from that process before the timeout elapsed.
4261 Otherwise, return true iff we received input from any process. */ 4261 Otherwise, return true if we received input from any process. */
4262 4262
4263 int 4263 int
4264 wait_reading_process_output (time_limit, microsecs, read_kbd, do_display, 4264 wait_reading_process_output (time_limit, microsecs, read_kbd, do_display,
4265 wait_for_cell, wait_proc, just_wait_proc) 4265 wait_for_cell, wait_proc, just_wait_proc)
4266 int time_limit, microsecs, read_kbd, do_display; 4266 int time_limit, microsecs, read_kbd, do_display;
7354 always be NULL, since `subprocesses' isn't defined. 7354 always be NULL, since `subprocesses' isn't defined.
7355 7355
7356 do_display != 0 means redisplay should be done to show subprocess 7356 do_display != 0 means redisplay should be done to show subprocess
7357 output that arrives. 7357 output that arrives.
7358 7358
7359 Return true iff we received input from any process. */ 7359 Return true if we received input from any process. */
7360 7360
7361 int 7361 int
7362 wait_reading_process_output (time_limit, microsecs, read_kbd, do_display, 7362 wait_reading_process_output (time_limit, microsecs, read_kbd, do_display,
7363 wait_for_cell, wait_proc, just_wait_proc) 7363 wait_for_cell, wait_proc, just_wait_proc)
7364 int time_limit, microsecs, read_kbd, do_display; 7364 int time_limit, microsecs, read_kbd, do_display;