comparison src/process.c @ 8570:dd3dfde8f973

(wait_reading_process_input): Clear waiting_for_user_input_p before returning.
author Richard M. Stallman <rms@gnu.org>
date Fri, 19 Aug 1994 07:23:05 +0000
parents ee13e8728666
children b14532c71632
comparison
equal deleted inserted replaced
8569:3a9e9d3df590 8570:dd3dfde8f973
1793 /* This variable is different from waiting_for_input in keyboard.c. 1793 /* This variable is different from waiting_for_input in keyboard.c.
1794 It is used to communicate to a lisp process-filter/sentinel (via the 1794 It is used to communicate to a lisp process-filter/sentinel (via the
1795 function Fwaiting_for_user_input_p below) whether emacs was waiting 1795 function Fwaiting_for_user_input_p below) whether emacs was waiting
1796 for user-input when that process-filter was called. 1796 for user-input when that process-filter was called.
1797 waiting_for_input cannot be used as that is by definition 0 when 1797 waiting_for_input cannot be used as that is by definition 0 when
1798 lisp code is being evalled */ 1798 lisp code is being evalled.
1799 This is also used in record_asynch_buffer_change.
1800 For that purpose, this must be 0
1801 when not inside wait_reading_process_input. */
1799 static int waiting_for_user_input_p; 1802 static int waiting_for_user_input_p;
1800 1803
1801 /* Read and dispose of subprocess output while waiting for timeout to 1804 /* Read and dispose of subprocess output while waiting for timeout to
1802 elapse and/or keyboard input to be available. 1805 elapse and/or keyboard input to be available.
1803 1806
2157 } 2160 }
2158 } 2161 }
2159 } /* end for each file descriptor */ 2162 } /* end for each file descriptor */
2160 } /* end while exit conditions not met */ 2163 } /* end while exit conditions not met */
2161 2164
2165 waiting_for_user_input_p = 0;
2166
2162 /* If calling from keyboard input, do not quit 2167 /* If calling from keyboard input, do not quit
2163 since we want to return C-g as an input character. 2168 since we want to return C-g as an input character.
2164 Otherwise, do pending quit if requested. */ 2169 Otherwise, do pending quit if requested. */
2165 if (XINT (read_kbd) >= 0) 2170 if (XINT (read_kbd) >= 0)
2166 { 2171 {