diff options
| author | Richard M. Stallman | 1994-09-08 19:14:12 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-09-08 19:14:12 +0000 |
| commit | f65e6f7da42c7c7fc1f0c382aee65979a897bd57 (patch) | |
| tree | 772fcde902b80fadf59932b77c943941077c8bb2 /src | |
| parent | f709e2e1309ed834c7a78ac4527caca011725562 (diff) | |
| download | emacs-f65e6f7da42c7c7fc1f0c382aee65979a897bd57.tar.gz emacs-f65e6f7da42c7c7fc1f0c382aee65979a897bd57.zip | |
(record_asynch_buffer_change): Don't test
Fwaiting_for_user_input_p if no subprocesses.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 6534e45e022..96f0c651658 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -3447,6 +3447,7 @@ record_asynch_buffer_change () | |||
| 3447 | event.kind = buffer_switch_event; | 3447 | event.kind = buffer_switch_event; |
| 3448 | event.frame_or_window = Qnil; | 3448 | event.frame_or_window = Qnil; |
| 3449 | 3449 | ||
| 3450 | #ifdef subprocesses | ||
| 3450 | /* We don't need a buffer-switch event unless Emacs is waiting for input. | 3451 | /* We don't need a buffer-switch event unless Emacs is waiting for input. |
| 3451 | The purpose of the event is to make read_key_sequence look up the | 3452 | The purpose of the event is to make read_key_sequence look up the |
| 3452 | keymaps again. If we aren't in read_key_sequence, we don't need one, | 3453 | keymaps again. If we aren't in read_key_sequence, we don't need one, |
| @@ -3454,6 +3455,10 @@ record_asynch_buffer_change () | |||
| 3454 | tem = Fwaiting_for_user_input_p (); | 3455 | tem = Fwaiting_for_user_input_p (); |
| 3455 | if (NILP (tem)) | 3456 | if (NILP (tem)) |
| 3456 | return; | 3457 | return; |
| 3458 | #else | ||
| 3459 | /* We never need these events if we have no asynchronous subprocesses. */ | ||
| 3460 | return; | ||
| 3461 | #endif | ||
| 3457 | 3462 | ||
| 3458 | /* Make sure no interrupt happens while storing the event. */ | 3463 | /* Make sure no interrupt happens while storing the event. */ |
| 3459 | #ifdef SIGIO | 3464 | #ifdef SIGIO |