diff options
| author | Richard M. Stallman | 1997-06-13 00:45:19 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-06-13 00:45:19 +0000 |
| commit | 69645afc5310cb5cad6fc6769de55e9102ffaaa9 (patch) | |
| tree | 327d46e894c5f6c2a473079b8d582e9607d07bd9 /src/process.c | |
| parent | 536d3fc556cb4c158f60cda48d2679b1e6d6313e (diff) | |
| download | emacs-69645afc5310cb5cad6fc6769de55e9102ffaaa9.tar.gz emacs-69645afc5310cb5cad6fc6769de55e9102ffaaa9.zip | |
(wait_reading_process_input): Return if unread events appear.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/process.c b/src/process.c index 1b8174299ff..a9da5b1f725 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -2248,6 +2248,11 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display) | |||
| 2248 | goto retry; | 2248 | goto retry; |
| 2249 | } | 2249 | } |
| 2250 | 2250 | ||
| 2251 | /* If there is unread keyboard input, also return. */ | ||
| 2252 | if (XINT (read_kbd) != 0 | ||
| 2253 | && requeued_events_pending_p ()) | ||
| 2254 | break; | ||
| 2255 | |||
| 2251 | if (! EMACS_TIME_NEG_P (timer_delay) && time_limit != -1) | 2256 | if (! EMACS_TIME_NEG_P (timer_delay) && time_limit != -1) |
| 2252 | { | 2257 | { |
| 2253 | EMACS_TIME difference; | 2258 | EMACS_TIME difference; |
| @@ -2408,6 +2413,11 @@ wait_reading_process_input (time_limit, microsecs, read_kbd, do_display) | |||
| 2408 | break; | 2413 | break; |
| 2409 | } | 2414 | } |
| 2410 | 2415 | ||
| 2416 | /* If there is unread keyboard input, also return. */ | ||
| 2417 | if (XINT (read_kbd) != 0 | ||
| 2418 | && requeued_events_pending_p ()) | ||
| 2419 | break; | ||
| 2420 | |||
| 2411 | /* If wait_for_cell. check for keyboard input | 2421 | /* If wait_for_cell. check for keyboard input |
| 2412 | but don't run any timers. | 2422 | but don't run any timers. |
| 2413 | ??? (It seems wrong to me to check for keyboard | 2423 | ??? (It seems wrong to me to check for keyboard |