changeset 11993:25aed301d8f7

(Fset_input_mode): When read_socket_hook, ignore what the user specified, and set interrupt_input in the preferred way for this system.
author Karl Heuer <kwzh@gnu.org>
date Mon, 29 May 1995 19:40:47 +0000
parents e550e0d13e83
children b4dd8ca308dd
files src/keyboard.c
diffstat 1 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/keyboard.c	Mon May 29 16:49:24 1995 +0000
+++ b/src/keyboard.c	Mon May 29 19:40:47 1995 +0000
@@ -6525,19 +6525,27 @@
   reset_sys_modes ();
 #ifdef SIGIO
 /* Note SIGIO has been undef'd if FIONREAD is missing.  */
+  if (read_socket_hook)
+    {
+      /* When using X, don't give the user a real choice,
+	 because we haven't implemented the mechanisms to support it.  */
 #ifdef NO_SOCK_SIGIO
-  if (read_socket_hook)
-    interrupt_input = 0;	/* No interrupts if reading from a socket.  */
+      interrupt_input = 0;
+#else /* not NO_SOCK_SIGIO */
+      interrupt_input = 1;
+#endif /* NO_SOCK_SIGIO */
+    }
   else
-#endif /* NO_SOCK_SIGIO */
     interrupt_input = !NILP (interrupt);
 #else /* not SIGIO */
   interrupt_input = 0;
 #endif /* not SIGIO */
+
 /* Our VMS input only works by interrupts, as of now.  */
 #ifdef VMS
   interrupt_input = 1;
 #endif
+
   flow_control = !NILP (flow);
   if (NILP (meta))
     meta_key = 0;