From: Eli Zaretskii <eliz@gnu.org>
To: monnier@iro.umontreal.ca
Cc: mvoteiza@udel.edu, 16479@debbugs.gnu.org
Subject: bug#16479: 24.3.50; daemon freeze with tty menus
Date: Mon, 20 Jan 2014 19:48:45 +0200 [thread overview]
Message-ID: <8361peilxe.fsf@gnu.org> (raw)
In-Reply-To: <834n52l9qh.fsf@gnu.org>
> Date: Fri, 17 Jan 2014 20:54:46 +0200
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: mvoteiza@udel.edu, 16479@debbugs.gnu.org
>
> > From: Stefan Monnier <monnier@iro.umontreal.ca>
> > Cc: mvoteiza@udel.edu, 16479@debbugs.gnu.org
> > Date: Fri, 17 Jan 2014 11:16:26 -0500
> >
> > So, ideally (recursion-depth) should be >0 when inside the tty menus,
> > and calling (top-level) should get us out of that tty menu.
>
> I'll see what I can do. Thanks.
I think I see the root cause. It's in server-create-tty-frame, which
does:
(set-frame-parameter frame 'display
(getenv-internal "DISPLAY" (process-get proc 'env)))
(select-frame frame)
IOW, it switches to the newly created TTY frame from under the feet of
the menu input loop. When read_menu_command returns, the selected
frame is different from what it was when the function was called.
It is easy enough to detect the frame switch, but the question is:
what to do when that happens?
This is complicated by the fact that the frame switch event is not
returned until some other event takes place. Thus, while the new
frame is already selected, the old frame still has focus, until you
type something. So to exit the vicious circle, you need to type
something into the old frame (which causes the new frame to react),
then switch to the new frame, and only then you are out of the woods.
I'm unsure how best to handle this mess. Maybe avoid selecting the
new frame in server-create-tty-frame, if a TTY menu is currently being
displayed?
next prev parent reply other threads:[~2014-01-20 17:48 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-17 9:39 bug#16479: 24.3.50; daemon freeze with tty menus Mark Oteiza
2014-01-17 9:55 ` Eli Zaretskii
2014-01-17 10:21 ` Mark Oteiza
2014-01-17 11:10 ` Eli Zaretskii
2014-01-17 11:59 ` Eli Zaretskii
2014-01-17 14:55 ` Stefan Monnier
2014-01-17 15:26 ` Eli Zaretskii
2014-01-17 16:16 ` Stefan Monnier
2014-01-17 18:54 ` Eli Zaretskii
2014-01-20 17:48 ` Eli Zaretskii [this message]
2014-01-20 18:27 ` Stefan Monnier
2014-01-20 19:35 ` Eli Zaretskii
2014-01-20 20:28 ` Stefan Monnier
2014-01-20 21:17 ` Eli Zaretskii
2014-01-25 9:59 ` Eli Zaretskii
2014-01-25 22:39 ` Stefan Monnier
2014-01-26 3:52 ` Eli Zaretskii
2014-01-26 6:17 ` Stefan Monnier
2014-01-26 16:23 ` Eli Zaretskii
2014-01-27 2:07 ` Stefan Monnier
2014-02-01 9:43 ` Eli Zaretskii
2014-02-02 1:27 ` Stefan Monnier
2022-04-23 14:09 ` Lars Ingebrigtsen
2022-04-24 19:28 ` Mark Oteiza
2022-04-24 19:45 ` Lars Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8361peilxe.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=16479@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=mvoteiza@udel.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.