diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 45c5c46be2f..27253dfc243 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -6525,19 +6525,27 @@ See also `current-input-mode'.") | |||
| 6525 | reset_sys_modes (); | 6525 | reset_sys_modes (); |
| 6526 | #ifdef SIGIO | 6526 | #ifdef SIGIO |
| 6527 | /* Note SIGIO has been undef'd if FIONREAD is missing. */ | 6527 | /* Note SIGIO has been undef'd if FIONREAD is missing. */ |
| 6528 | #ifdef NO_SOCK_SIGIO | ||
| 6529 | if (read_socket_hook) | 6528 | if (read_socket_hook) |
| 6530 | interrupt_input = 0; /* No interrupts if reading from a socket. */ | 6529 | { |
| 6531 | else | 6530 | /* When using X, don't give the user a real choice, |
| 6531 | because we haven't implemented the mechanisms to support it. */ | ||
| 6532 | #ifdef NO_SOCK_SIGIO | ||
| 6533 | interrupt_input = 0; | ||
| 6534 | #else /* not NO_SOCK_SIGIO */ | ||
| 6535 | interrupt_input = 1; | ||
| 6532 | #endif /* NO_SOCK_SIGIO */ | 6536 | #endif /* NO_SOCK_SIGIO */ |
| 6537 | } | ||
| 6538 | else | ||
| 6533 | interrupt_input = !NILP (interrupt); | 6539 | interrupt_input = !NILP (interrupt); |
| 6534 | #else /* not SIGIO */ | 6540 | #else /* not SIGIO */ |
| 6535 | interrupt_input = 0; | 6541 | interrupt_input = 0; |
| 6536 | #endif /* not SIGIO */ | 6542 | #endif /* not SIGIO */ |
| 6543 | |||
| 6537 | /* Our VMS input only works by interrupts, as of now. */ | 6544 | /* Our VMS input only works by interrupts, as of now. */ |
| 6538 | #ifdef VMS | 6545 | #ifdef VMS |
| 6539 | interrupt_input = 1; | 6546 | interrupt_input = 1; |
| 6540 | #endif | 6547 | #endif |
| 6548 | |||
| 6541 | flow_control = !NILP (flow); | 6549 | flow_control = !NILP (flow); |
| 6542 | if (NILP (meta)) | 6550 | if (NILP (meta)) |
| 6543 | meta_key = 0; | 6551 | meta_key = 0; |