emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: input-pending-p after make-frame-visible


From: Aaron Jensen
Subject: Re: input-pending-p after make-frame-visible
Date: Sat, 16 Oct 2021 10:16:56 -0400

On Sat, Oct 16, 2021 at 3:54 AM martin rudalics <rudalics@gmx.at> wrote:
>
>  > It's already there, but it doesn't appear to be effective with either
>  > while-no-input or input-pending-p. Here's an updated repro:
>
> You could try to report the values of 'unread-command-events',
> 'unread-post-input-method-events' and 'unread-input-method-events' in
>
> (message "input-pending-p after: %S" (input-pending-p))

I know 19 (help event) is pending from a patch I have to report what is pending:

modified   src/keyboard.c
@@ -10488,9 +10488,19 @@ DEFUN ("input-pending-p", Finput_pending_p,
Sinput_pending_p, 0, 1, 0,
   /* Process non-user-visible events (Bug#10195).  */
   process_special_events ();

-  return (get_input_pending ((NILP (check_timers)
+  bool input_pending;
+
+  input_pending = get_input_pending ((NILP (check_timers)
                               ? 0 : READABLE_EVENTS_DO_TIMERS_NOW)
-      | READABLE_EVENTS_FILTER_EVENTS)
+      | READABLE_EVENTS_FILTER_EVENTS);
+
+  if (input_pending) {
+    printf ( "Input Pending event type: %d %d\n",
+      kbd_fetch_ptr->kind, HELP_EVENT);
+    fflush(stdout);
+  }
+
+  return (input_pending
    ? Qt : Qnil);

That prints:

Input Pending event type: 19 19

When I reproduce it.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]