aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1995-05-29 19:40:47 +0000
committerKarl Heuer1995-05-29 19:40:47 +0000
commit9a0f60bbb776046a2706e5029d13d13ceec7ca94 (patch)
tree0e0641b29de0fb948ee4857f75eb647533f9ad91
parent0ff74d81c3ed95d1b7632cfbd8557f94f56797ec (diff)
downloademacs-9a0f60bbb776046a2706e5029d13d13ceec7ca94.tar.gz
emacs-9a0f60bbb776046a2706e5029d13d13ceec7ca94.zip
(Fset_input_mode): When read_socket_hook, ignore
what the user specified, and set interrupt_input in the preferred way for this system.
-rw-r--r--src/keyboard.c14
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;