XEmacs 21.2.11
[chise/xemacs-chise.git.1] / src / event-tty.c
index 6f02747..0e44cf4 100644 (file)
@@ -71,6 +71,8 @@ tty_timeout_to_emacs_event (struct Lisp_Event *emacs_event)
   emacs_event->timestamp  = 0; /* #### */
   emacs_event->event.timeout.interval_id =
     pop_low_level_timeout (&tty_timer_queue, 0);
+  emacs_event->event.timeout.function = Qnil;
+  emacs_event->event.timeout.object = Qnil;
 }
 
 \f
@@ -92,8 +94,8 @@ emacs_tty_event_pending_p (int user_p)
                             non_fake_input_wait_mask);
 }
 
-static struct console *
-find_console_from_fd (int fd)
+struct console *
+tty_find_console_from_fd (int fd)
 {
   Lisp_Object concons;
 
@@ -140,7 +142,7 @@ emacs_tty_next_event (struct Lisp_Event *emacs_event)
                 user events ahead of process events. */
              if (FD_ISSET (i, &temp_mask) && FD_ISSET (i, &tty_only_mask))
                {
-                 struct console *c = find_console_from_fd (i);
+                 struct console *c = tty_find_console_from_fd (i);
 
                  assert (c);
                  if (read_event_from_tty_or_stream_desc (emacs_event, c, i))