From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#75056: 31.0.50; tty-child-frames with server / multiple clients possible hangs Date: Sun, 05 Jan 2025 18:41:15 +0200 Message-ID: <86v7ut6wno.fsf@gnu.org> References: <8634i9y1wa.fsf@gnu.org> <86wmflwlok.fsf@gnu.org> <86v7v5wbqs.fsf@gnu.org> <86msghwa6q.fsf@gnu.org> <86y100utwa.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30519"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, 75056@debbugs.gnu.org To: Len Trigg Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 05 17:42:30 2025 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tUThu-0007l4-3H for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 05 Jan 2025 17:42:30 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tUThX-0004sj-SJ; Sun, 05 Jan 2025 11:42:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUThT-0004sI-0u for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 11:42:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tUThS-0005q2-IT for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 11:42:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=References:In-Reply-To:From:Date:To:Subject; bh=DPBoBxlS0975DqnVMt9NhO1U+JuFp+6H/mHUxxYhjXE=; b=Ynbe+606MPW945L4RxhwQ5/iYdOBJTQNXpJmOKgIWP8izLbO2OEEpIv3twjVBouR4o9xOW4C3dKyWIIkbu6B24abT1Ejby1Puuxcv1zyeQxnu3UNFRg4rhiCpc1lU0rmPaEPjNlnFLP1hAEFNZP8Lab+xfpaEPZJONvXKIrK576dyy15ZSPHaioZO+74hLL34zRPJohxFQQHQUr6NkLa2uhOaw/qQk0RPkeDjjEe/7wWyKashoWMmc1g6opPJUtfCDMw2TlpQgvodqc41LPpxIUSHthkhnAdPgLnIIT5uQ4U3n2zpEEFLDPi+9E+bYSAuOJOeEUQiLAEKKS665Inbw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tUThS-0004mM-1L for bug-gnu-emacs@gnu.org; Sun, 05 Jan 2025 11:42:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 05 Jan 2025 16:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 75056 X-GNU-PR-Package: emacs Original-Received: via spool by 75056-submit@debbugs.gnu.org id=B75056.173609528818320 (code B ref 75056); Sun, 05 Jan 2025 16:42:01 +0000 Original-Received: (at 75056) by debbugs.gnu.org; 5 Jan 2025 16:41:28 +0000 Original-Received: from localhost ([127.0.0.1]:34955 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tUTgt-0004lP-Ux for submit@debbugs.gnu.org; Sun, 05 Jan 2025 11:41:28 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60066) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tUTgp-0004l6-TN for 75056@debbugs.gnu.org; Sun, 05 Jan 2025 11:41:26 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tUTgk-0005HU-EJ; Sun, 05 Jan 2025 11:41:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=DPBoBxlS0975DqnVMt9NhO1U+JuFp+6H/mHUxxYhjXE=; b=W7uIAz4unfVJ ORyql2EmyPsqHZ82xTi1I+yAQ75FCV/ZQaD0ZpV6Ih0y1dzo4h1Y9yNQBBghStxXlP8se4uxYHCXe L5oaUapcuWxamZlNKu5JokzItprx4b0a4sH0FzbUcyugKTZaVt9mPX+T1QvRvN/zgfVf3YwW5SB83 /r2ntFIf922AlBMPOSYSbBoIzTFP9spTBBEcu3Y3brlbNchpXkCzDHc2r6NTjXbce2QLF+9ZXIb4h qGxlVgtfscuXpbBgqd2pBEyGT22ZOuWFTyqlsfQp+DTO8+mtG7MSnWDEK6VXN4gasF2vZQL7jZTwZ CzwyjF6C4bWucHN24lcOig==; In-Reply-To: (message from Len Trigg on Sun, 29 Dec 2024 08:55:51 +1300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:298574 Archived-At: > From: Len Trigg > 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 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.