all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Len Trigg <lenbok@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
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: Tue, 07 Jan 2025 20:04:57 +0200	[thread overview]
Message-ID: <CED82A40-26F1-464C-9531-333482BED691@gmail.com> (raw)
In-Reply-To: <86v7ut6wno.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 4006 bytes --]

Please excuse the top reply, I am traveling and my phone email client is limited. 

Eli, thanks for taking another look. AFAIK, posframe needs to be newer than what is released in ELPA. You can get the latest from <https://github.com/tumashu/posframe>

I also think that if you had the older version you would not have seen a tty-child-frame at all and so not have triggered the bug I see - In your test did C-x b bring up a tty child frame in the center of the window, or a regular minibuffer at the bottom of the screen? 

(You are correct that I did not switch away from the selector in my repro steps, I selected the buffer and exited normally with RET).

Cheers, 
Len.


On 5 January 2025 6:41:15 pm GMT+02:00, Eli Zaretskii <eliz@gnu.org> wrote:
>> 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.
>

[-- Attachment #2: Type: text/html, Size: 4544 bytes --]

  reply	other threads:[~2025-01-07 18:04 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
2025-01-07 18:04                           ` Len Trigg [this message]
     [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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CED82A40-26F1-464C-9531-333482BED691@gmail.com \
    --to=lenbok@gmail.com \
    --cc=75056@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=gerd.moellmann@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 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.