Subject: bug#9729: 24.0.50; can't editing buffers while in another buffer i'm openning files

From: Eli Zaretskii <[email-masked]>
Date: Sat, 17 Jul 2021 18:17:16 +0300

> From: Lars Ingebrigtsen <[email-masked]>
> Cc: [email-masked],  [email-masked]
> Date: Sat, 17 Jul 2021 16:02:56 +0200
> 
> Eli Zaretskii <[email-masked]> writes:
> 
> > It's a basic limitation of our keyboard input: we can only read from a
> > single frame at a time.
> 
> I guess that'd be difficult to fix...  but could we do something about
> how this works in an emacsclient context?
> 
> That is, if you `M-x' and then change frames in a normal GUI Emacs, the
> `M-x' will follow you around.  There's no such concept in emacsclient as
> an "active frame", but could we somehow make minibuffer commands abort
> the action in other frames?

AFAIR, the prompt follows to another GUI frame because that frame gets
the focus-in event.  If I'm right, then it should also work with
emacsclient frames on terminals that support focus-in events.  Failing
that, how to tell Emacs to switch to another frame, and would the way
to do that easier than just typing C-g and switching to the client
frame "by hand"?