From: Eli Zaretskii <eliz@gnu.org>
To: Len Trigg <lenbok@gmail.com>
Cc: gerd.moellmann@gmail.com, 75056@debbugs.gnu.org
Subject: bug#75056: 31.0.50; tty-child-frames with server / multiple clients possible hangs
Date: Sun, 05 Jan 2025 18:41:15 +0200 [thread overview]
Message-ID: <86v7ut6wno.fsf@gnu.org> (raw)
In-Reply-To: <CAOGVwemEaxW2LUn0UTx4LHbOk4P-+wL4qaNHd=vrWFkV18Vrog@mail.gmail.com> (message from Len Trigg on Sun, 29 Dec 2024 08:55:51 +1300)
> From: Len Trigg <lenbok@gmail.com>
> Date: Sun, 29 Dec 2024 08:55:51 +1300
> Cc: gerd.moellmann@gmail.com, 75056@debbugs.gnu.org
>
> On Sat, 28 Dec 2024 at 20:52, Eli Zaretskii <eliz@gnu.org> wrote:
>
> Could you please extend your recipe so it starts from "emacs -nw -Q"?
> See, I don't have posframe or elpaca installed and don't use them, and
> don't want to install them just to reproduce and debug this problem.
>
> Unless there's something I'm missing, the init file and startup command I provided did the installation of those
> files for you into a temporary directory, so I thought that was the easiest self-contained path to reproducing.
> Let me assume you've run it once that way initially in order to fetch the packages (otherwise you can
> manually download the files if you want and adjust the paths in the below command line, but be aware that
> you need new enough versions of posframe that understands tty child frame). Then to get a "emacs -nw -Q"
> initialization you can use the attached test.el to do:
>
> emacs -nw -Q --init-directory=~/emacs-test -l ~/emacs-test/elpaca/repos/vertico/vertico.el -l ~
> /emacs-test/elpaca/repos/vertico/extensions/vertico-multiform.el -l ~
> /emacs-test/elpaca/repos/posframe/posframe.el -l ~
> /emacs-test/elpaca/repos/vertico-posframe/vertico-posframe.el test.el
>
> Then manually "eval" the remaining commands in test.el
> (in another terminal) emacsclient -nw
> Then invoke the child frame pop up: (C-x b and C-n to select *Messages* and RET). Now we're no longer in
> a minibuffer.
> Switch back to the original emacs terminal
> Invoke the child frame pop up: (C-x b and C-n to select *Messages* and RET). Now we're no longer in a
> minibuffer.
> Swap to the emacsclient terminal, and note that the client is "hung".
>
> I think this gives a specific enough recipe to minimally reproduce.
>
> (vertico-mode)
>
> (push '(tty-non-selected-cursor . t) vertico-posframe-parameters)
> (push '(undecorated . nil) vertico-posframe-parameters)
> (vertico-posframe-mode)
>
> (server-start)
I tried this now, but I don't think I see the problem you describe.
I donwloaded vertico, posframe, and vertico-posframe packages from GNU
ELPA -- are the versions available there new enough to reproduce the
problem? If not, where should I download these packages from?
Anyway, I can only observe a "hung" client if I forcibly switch from
an active minibuffer. That is, after "C-x b" I don't select a buffer,
I simply type "C-x o" to switch out of the mini-window. Then only the
client where I switched out of the mini-window can accept keyboard
input, the other one is "hung".
However, I can see the same situation even without these two packages:
if I start emacsclient, type "C-x b" there, and then "C-x o" to switch
away from the mini-window, Emacs on the other frame will stop responding
to keyboard input. This is expected: when Emacs has an active
minibuffer on some display, Emacs temporarily switches to the
"single-keyboard mode".
But I suspect this is not what you see, so I wonder what did I not do
to reproduce the problem you see.
next prev parent reply other threads:[~2025-01-05 16:41 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-12-24 5:43 bug#75056: 31.0.50; tty-child-frames with server / multiple clients possible hangs Len Trigg
2024-12-25 11:54 ` Eli Zaretskii
2024-12-25 11:59 ` Gerd Möllmann
2024-12-27 6:04 ` Gerd Möllmann
2024-12-27 8:18 ` Eli Zaretskii
2024-12-27 8:46 ` Gerd Möllmann
2024-12-27 8:54 ` Eli Zaretskii
2024-12-27 9:04 ` Gerd Möllmann
2024-12-27 12:28 ` Eli Zaretskii
2024-12-27 12:47 ` Gerd Möllmann
2024-12-27 13:02 ` Eli Zaretskii
2024-12-27 13:17 ` Gerd Möllmann
2024-12-27 14:53 ` Eli Zaretskii
2024-12-27 15:56 ` Gerd Möllmann
2024-12-27 18:13 ` Len Trigg
2024-12-27 18:23 ` Len Trigg
2024-12-28 7:52 ` Eli Zaretskii
2024-12-28 19:55 ` Len Trigg
2025-01-05 16:41 ` Eli Zaretskii [this message]
2025-01-07 18:04 ` Len Trigg
[not found] ` <CAOGVwenNt8a0HmSXTnqu5_FKkxEVMDw0hmak-MLk7Sn6up_wtg@mail.gmail.com>
2024-12-28 7:44 ` Eli Zaretskii
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86v7ut6wno.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=75056@debbugs.gnu.org \
--cc=gerd.moellmann@gmail.com \
--cc=lenbok@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).