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: martin rudalics
Subject: Re: input-pending-p after make-frame-visible
Date: Sun, 26 Sep 2021 11:11:37 +0200

> There is a package that makes it so that your minibuffer is rendered
> into a child-frame called mini-frame:
> https://github.com/muffinmad/emacs-mini-frame/
>
> I've noticed that at some point, Emacs gets into a state where after
> make-frame-visible is called with the child frame, input-pending-p
> starts returning t, rather than nil:
>
>      (message "pending: %S" (input-pending-p))
>      (make-frame-visible mini-frame-frame)
>      (message "pending: %S" (input-pending-p))
>
> Prints:
>
> nil
> t
>
> Source: 
https://github.com/muffinmad/emacs-mini-frame/blob/57a049b9e1ea4a9b65e82fc10c8c7e70a042f636/mini-frame.el#L313
>
> This ordinarily wouldn't matter, but I use it with a package that uses
> while-no-input and this unexpected input causes issues with that
> package (https://github.com/minad/vertico/issues/115).
>
> What could possibly cause an input to become pending when the frame is
> made visible?

Can you try the attached patch?  And, if possible, read the thread of
Bug#49997 to tell us whether it is related and what would be needed to
fix both issues - the one described there and yours.

Thanks, martin

Attachment: while-no-input-ignore-events.diff
Description: Text Data


reply via email to

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