Subject: Re: bug#71386: 29.1; Frame is auto-deleted even when it has multiple tabs

From: martin rudalics <[email-masked]>
Date: Wed, 2 Apr 2025 10:14:50 +0200

> Martin, could you help to understand why this line fails
 >
 >        ;; FIXME: uncomment (should (equal (buffer-name) "*Messages*"))
 >
 > in 'tab-bar-tests-quit-restore-window' in test/lisp/tab-bar-tests.el?
 >
 > It selects an unexpected buffer.  Maybe because the frame focus
 > is broken?

IIUC the context is

       (quit-window)
       (should (eq (length (window-list)) 1))
       (should (eq (length (frame-list)) 2))
       ;; FIXME: uncomment (should (equal (buffer-name) "*Messages*"))

What is 'quit-window' supposed to do - delete the frame?  In either case
we would have to know which window gets selected when the 'quit-window'
call returns and which buffer it shows.

martin