From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#71386: 29.1; Frame is auto-deleted even when it has multiple tabs Date: Fri, 07 Jun 2024 09:39:20 +0300 Organization: LINKOV.NET Message-ID: <86zfrx8ec0.fsf@mail.linkov.net> References: <86ikymipzx.fsf@gnu.org> <7269c7c4-86a1-44bf-8d5d-378c3584027a@gmx.at> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30121"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/30.0.50 (x86_64-pc-linux-gnu) Cc: Eli Zaretskii , Al Haji-Ali , 71386@debbugs.gnu.org To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 07 08:56:05 2024 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 1sFTW9-0007i3-Sq for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Jun 2024 08:56:05 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFTVt-0003oN-5R; Fri, 07 Jun 2024 02:55:49 -0400 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 1sFTVs-0003o8-6y for bug-gnu-emacs@gnu.org; Fri, 07 Jun 2024 02:55:48 -0400 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 1sFTVr-0005Yh-LW for bug-gnu-emacs@gnu.org; Fri, 07 Jun 2024 02:55:47 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sFTW6-0001VX-CC for bug-gnu-emacs@gnu.org; Fri, 07 Jun 2024 02:56:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Jun 2024 06:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71386 X-GNU-PR-Package: emacs Original-Received: via spool by 71386-submit@debbugs.gnu.org id=B71386.17177433225634 (code B ref 71386); Fri, 07 Jun 2024 06:56:02 +0000 Original-Received: (at 71386) by debbugs.gnu.org; 7 Jun 2024 06:55:22 +0000 Original-Received: from localhost ([127.0.0.1]:55827 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFTVR-0001Sn-MK for submit@debbugs.gnu.org; Fri, 07 Jun 2024 02:55:22 -0400 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:47043) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFTIe-0000nW-L2 for 71386@debbugs.gnu.org; Fri, 07 Jun 2024 02:42:09 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id 7186AFF80C; Fri, 7 Jun 2024 06:41:26 +0000 (UTC) In-Reply-To: <7269c7c4-86a1-44bf-8d5d-378c3584027a@gmx.at> (martin rudalics's message of "Thu, 6 Jun 2024 11:19:59 +0200") X-GND-Sasl: juri@linkov.net 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:286741 Archived-At: >>> If I open a frame with multiple tabs, and one of the tabs has a >>> dedicated window, then kill the buffer with the dedicated window, the >>> frame is deleted along with its tabs. >>> >>> I understand that this is the documented behaviour, however my >>> expectation is that the tab should be deleted but the frame should >>> stay when other tabs are available, similar to how the frame is not >>> deleted if other windows are visible. >> >> I'm not sure I agree with you. Tabs are just saved frame >> configurations, they are not real windows. If we make this behavior >> dependent on tab-bar-mode, we basically introduce an incompatible >> behavior change in this particular case, which people and Lisp >> programs out there might not expect or like. > > The current behavior of 'replace-buffer-in-windows' has been taken over > from 'quit-window' which Richard initially designed as > > ;; Get rid of the frame, if it has just one dedicated window > ;; and other visible frames exist. > > It is not carved in stone but if we want to change it for the tabs case > we should leave it in place. So I think that Juri should provide a tabs > option that has 'quit-restore-window' (which 'replace-buffer-in-windows' > should call) spare the frame in that case. Which buffer to show in that > window instead (especially if it never showed another buffer in its > whole life) is another question. Sorry, I don't understand what I should do in tab-bar-mode for quit-restore-window. I expected that changes should be in window.el.