[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: "Final" version of tty child frames
From: |
martin rudalics |
Subject: |
Re: "Final" version of tty child frames |
Date: |
Thu, 9 Jan 2025 11:24:08 +0100 |
User-agent: |
Mozilla Thunderbird |
> I've not yet understood where the third frame is created. Probably have to
> see this in the debugger to get into this again.
Without really checking it must be here
/* Use default-minibuffer-frame if possible. */
if (!FRAMEP (KVAR (kb, Vdefault_minibuffer_frame))
|| ! FRAME_LIVE_P (XFRAME (KVAR (kb, Vdefault_minibuffer_frame))))
{
Lisp_Object initial_frame;
/* If there's no minibuffer frame to use, create one. */
initial_frame = call1 (Qmake_initial_minibuffer_frame,
display);
kset_default_minibuffer_frame (kb, initial_frame);
}
'default-minibuffer-frame' on ttys is nil, only 'x-create-frame' and the
like set it AFAICT. Even if it were some frame, it might be of no use:
On a tty the mini window to use _must_ be on the visible frame. So
Emacs makes a new initial_frame and uses that frame's mini window. But
the child frame gets another root frame and sooner or later this will
crash anyway. The attached patch fixes it here.
martin (who can still post a bug report if you think it's needed)
tty-child-frame.diff
Description: Text Data
Re: "Final" version of tty child frames, Eli Zaretskii, 2025/01/05
Re: "Final" version of tty child frames, martin rudalics, 2025/01/08
- Re: "Final" version of tty child frames, Gerd Möllmann, 2025/01/08
- Re: "Final" version of tty child frames,
martin rudalics <=
- Re: "Final" version of tty child frames, Gerd Möllmann, 2025/01/09
- Re: "Final" version of tty child frames, martin rudalics, 2025/01/11
- Re: "Final" version of tty child frames, Gerd Möllmann, 2025/01/11
- Re: "Final" version of tty child frames, martin rudalics, 2025/01/11
- Re: "Final" version of tty child frames, Gerd Möllmann, 2025/01/11
- Re: "Final" version of tty child frames, Gerd Möllmann, 2025/01/12
- Re: "Final" version of tty child frames, Gerd Möllmann, 2025/01/12
- Re: "Final" version of tty child frames, Gerd Möllmann, 2025/01/12
- Re: "Final" version of tty child frames, Eli Zaretskii, 2025/01/12
- Re: "Final" version of tty child frames, martin rudalics, 2025/01/12