GNU bug report logs -
#71386
29.1; Frame is auto-deleted even when it has multiple tabs
Previous Next
Reported by: Al Haji-Ali <abdo.haji.ali <at> gmail.com>
Date: Thu, 6 Jun 2024 00:11:02 UTC
Severity: wishlist
Found in version 29.1
Fixed in version 31.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #259 received at 71386 <at> debbugs.gnu.org (full text, mbox):
>> Just removing 'window--quit-restore-select-window' also allows tests to pass.
>>
>> I wonder why it's needed when 'delete-window' already selects
>> the right window with 'set-frame-selected-window'.
>
> But this is not about 'delete-window'. It's about 'quit-window' and
> that function should select the window that was selected at the time
> 'display-buffer' was called. It doesn't do that currently when that
> window is on a different frame but it certainly should to do that when
> the window is on the same frame as the window to quit. So maybe you
> would prefer the following:
>
> (defun window--quit-restore-select-window (window)
> "Select WINDOW after having quit another one.
> Do not select an inactive minibuffer window."
> (when (and (window-live-p window)
> (or (not (window-minibuffer-p window))
> (minibuffer-window-active-p window))
> (eq (window-frame window) (selected-frame)))
> (select-window window)))
Looks right to restrict it to the selected frame.
(I don't know if this should be installed since
it only gives an unexpected result in one minor test.)
This bug report was last modified 35 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.