From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Adam Porter Newsgroups: gmane.emacs.devel Subject: tab-bar: Making a new tab without no-delete-other-windows windows Date: Fri, 24 Sep 2021 01:35:43 -0500 Message-ID: <87y27mbhvk.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16636"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Sep 24 08:36:35 2021 Return-path: Envelope-to: ged-emacs-devel@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 1mTep1-00048Z-AC for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Sep 2021 08:36:35 +0200 Original-Received: from localhost ([::1]:39382 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mTep0-0005cn-6m for ged-emacs-devel@m.gmane-mx.org; Fri, 24 Sep 2021 02:36:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58934) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTeoM-0004te-Oj for emacs-devel@gnu.org; Fri, 24 Sep 2021 02:35:54 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:35224) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mTeoL-0007rx-8L for emacs-devel@gnu.org; Fri, 24 Sep 2021 02:35:54 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mTeoJ-0003BI-CB for emacs-devel@gnu.org; Fri, 24 Sep 2021 08:35:51 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=ged-emacs-devel@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.248, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:275383 Archived-At: Hi Juri, et al, I've been experimenting with tab-bar, and I noticed that, when I make a new tab, e.g. with "C-x t 2", any windows that have the no-delete-other-windows parameter set are displayed in the new tab. I guess sometimes that might be what's desired, e.g. when using a side window that the user wants to be displayed regardless of window configuration. But in my case, I have some side windows in a tab that are only relevant to that tab's purpose, and when I make a new tab, I don't want those side windows to be included in it. As it is, I have to "C-x 0" on each unwanted window after making the new tab, which is awkward. So I added this to my config, which seems to solve it for me: (use-package tab-bar :config (defun ap/really-delete-other-windows (&rest _ignore) (let ((ignore-window-parameters t)) (delete-other-windows))) (cl-pushnew #'ap/really-delete-other-windows tab-bar-tab-post-open-functions)) I wonder, would it be worth including something like this by default, or as a "batteries-included" choice in the customization option? -- Thanks, Adam