[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/process.c
From: |
Kim F . Storm |
Subject: |
[Emacs-diffs] Changes to emacs/src/process.c |
Date: |
Fri, 20 Aug 2004 06:42:40 -0400 |
Index: emacs/src/process.c
diff -c emacs/src/process.c:1.439 emacs/src/process.c:1.440
*** emacs/src/process.c:1.439 Thu Aug 19 13:57:17 2004
--- emacs/src/process.c Fri Aug 20 10:33:25 2004
***************
*** 3778,3788 ****
seconds = NILP (process) ? -1 : 0;
return
! (wait_reading_process_input (seconds, useconds, 0, 0,
! Qnil,
! !NILP (process) ? XPROCESS (process) : NULL,
! NILP (just_this_one) ? 0 :
! !INTEGERP (just_this_one) ? 1 : -1)
? Qt : Qnil);
}
--- 3778,3788 ----
seconds = NILP (process) ? -1 : 0;
return
! (wait_reading_process_output (seconds, useconds, 0, 0,
! Qnil,
! !NILP (process) ? XPROCESS (process) : NULL,
! NILP (just_this_one) ? 0 :
! !INTEGERP (just_this_one) ? 1 : -1)
? Qt : Qnil);
}
***************
*** 3982,3993 ****
lisp code is being evalled.
This is also used in record_asynch_buffer_change.
For that purpose, this must be 0
! when not inside wait_reading_process_input. */
static int waiting_for_user_input_p;
/* This is here so breakpoints can be put on it. */
static void
! wait_reading_process_input_1 ()
{
}
--- 3982,3993 ----
lisp code is being evalled.
This is also used in record_asynch_buffer_change.
For that purpose, this must be 0
! when not inside wait_reading_process_output. */
static int waiting_for_user_input_p;
/* This is here so breakpoints can be put on it. */
static void
! wait_reading_process_output_1 ()
{
}
***************
*** 4029,4036 ****
Otherwise, return true iff we received input from any process. */
int
! wait_reading_process_input (time_limit, microsecs, read_kbd, do_display,
! wait_for_cell, wait_proc, just_wait_proc)
int time_limit, microsecs, read_kbd, do_display;
Lisp_Object wait_for_cell;
struct Lisp_Process *wait_proc;
--- 4029,4036 ----
Otherwise, return true iff we received input from any process. */
int
! wait_reading_process_output (time_limit, microsecs, read_kbd, do_display,
! wait_for_cell, wait_proc, just_wait_proc)
int time_limit, microsecs, read_kbd, do_display;
Lisp_Object wait_for_cell;
struct Lisp_Process *wait_proc;
***************
*** 4168,4174 ****
else if (time_limit != -1)
{
/* This is so a breakpoint can be put here. */
! wait_reading_process_input_1 ();
}
}
--- 4168,4174 ----
else if (time_limit != -1)
{
/* This is so a breakpoint can be put here. */
! wait_reading_process_output_1 ();
}
}
***************
*** 4411,4419 ****
/* If we are using polling for input,
and we see input available, make it get read now.
Otherwise it might not actually get read for a second.
! And on hpux, since we turn off polling in wait_reading_process_input,
it might never get read at all if we don't spend much time
! outside of wait_reading_process_input. */
if (read_kbd && interrupt_input
&& keyboard_bit_set (&Available)
&& input_polling_used ())
--- 4411,4419 ----
/* If we are using polling for input,
and we see input available, make it get read now.
Otherwise it might not actually get read for a second.
! And on hpux, since we turn off polling in wait_reading_process_output,
it might never get read at all if we don't spend much time
! outside of wait_reading_process_output. */
if (read_kbd && interrupt_input
&& keyboard_bit_set (&Available)
&& input_polling_used ())
***************
*** 5346,5354 ****
offset = buf - SDATA (object);
#ifdef EMACS_HAS_USECS
! wait_reading_process_input (0, 20000, 0, 0, Qnil, NULL,
0);
#else
! wait_reading_process_input (1, 0, 0, 0, Qnil, NULL, 0);
#endif
if (BUFFERP (object))
--- 5346,5354 ----
offset = buf - SDATA (object);
#ifdef EMACS_HAS_USECS
! wait_reading_process_output (0, 20000, 0, 0, Qnil, NULL,
0);
#else
! wait_reading_process_output (1, 0, 0, 0, Qnil, NULL, 0);
#endif
if (BUFFERP (object))
***************
*** 6210,6216 ****
FD_CLR (XINT (p->infd), &non_keyboard_wait_mask);
}
! /* Tell wait_reading_process_input that it needs to wake up and
look around. */
if (input_available_clear_time)
EMACS_SET_SECS_USECS (*input_available_clear_time, 0, 0);
--- 6210,6216 ----
FD_CLR (XINT (p->infd), &non_keyboard_wait_mask);
}
! /* Tell wait_reading_process_output that it needs to wake up and
look around. */
if (input_available_clear_time)
EMACS_SET_SECS_USECS (*input_available_clear_time, 0, 0);
***************
*** 6228,6234 ****
else if (WIFSIGNALED (w))
synch_process_termsig = WTERMSIG (w);
! /* Tell wait_reading_process_input that it needs to wake up and
look around. */
if (input_available_clear_time)
EMACS_SET_SECS_USECS (*input_available_clear_time, 0, 0);
--- 6228,6234 ----
else if (WIFSIGNALED (w))
synch_process_termsig = WTERMSIG (w);
! /* Tell wait_reading_process_output that it needs to wake up and
look around. */
if (input_available_clear_time)
EMACS_SET_SECS_USECS (*input_available_clear_time, 0, 0);
***************
*** 6880,6887 ****
Return true iff we received input from any process. */
int
! wait_reading_process_input (time_limit, microsecs, read_kbd, do_display,
! wait_for_cell, wait_proc, just_wait_proc)
int time_limit, microsecs, read_kbd, do_display;
Lisp_Object wait_for_cell;
struct Lisp_Process *wait_proc;
--- 6880,6887 ----
Return true iff we received input from any process. */
int
! wait_reading_process_output (time_limit, microsecs, read_kbd, do_display,
! wait_for_cell, wait_proc, just_wait_proc)
int time_limit, microsecs, read_kbd, do_display;
Lisp_Object wait_for_cell;
struct Lisp_Process *wait_proc;
- [Emacs-diffs] Changes to emacs/src/process.c, Kim F . Storm, 2004/08/01
- [Emacs-diffs] Changes to emacs/src/process.c, Richard M . Stallman, 2004/08/16
- [Emacs-diffs] Changes to emacs/src/process.c, Kim F . Storm, 2004/08/17
- [Emacs-diffs] Changes to emacs/src/process.c, Kim F . Storm, 2004/08/17
- [Emacs-diffs] Changes to emacs/src/process.c, Kim F . Storm, 2004/08/19
- [Emacs-diffs] Changes to emacs/src/process.c, Kim F . Storm, 2004/08/19
- [Emacs-diffs] Changes to emacs/src/process.c,
Kim F . Storm <=
- [Emacs-diffs] Changes to emacs/src/process.c, Richard M . Stallman, 2004/08/22