aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorRichard M. Stallman1994-08-19 07:23:05 +0000
committerRichard M. Stallman1994-08-19 07:23:05 +0000
commitd430ee71cc2e379450a0a58382a98651f0f2e0d0 (patch)
tree1568fa99e8ae541d86ec48424fa08c7c87e81722 /src/process.c
parentdfd11da7903c32515c8a886e33db9e04290d9cd6 (diff)
downloademacs-d430ee71cc2e379450a0a58382a98651f0f2e0d0.tar.gz
emacs-d430ee71cc2e379450a0a58382a98651f0f2e0d0.zip
(wait_reading_process_input):
Clear waiting_for_user_input_p before returning.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c
index 620ef552a07..5f2cfd0a07b 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1795,7 +1795,10 @@ Return non-nil iff we received any output before the timeout expired.")
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. */
1799static int waiting_for_user_input_p; 1802static 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
@@ -2159,6 +2162,8 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display)
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. */