From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#68235: 29.1.90; Switching tabs stops following process output in selected window Date: Sat, 09 Mar 2024 10:35:01 +0200 Message-ID: <861q8jztu2.fsf@gnu.org> References: <868r4reoh3.fsf@mail.linkov.net> <0634c46f-db93-4492-be69-5ac6ca0102a8@gmx.at> <865xzuvdgu.fsf@mail.linkov.net> <86a5p5qv61.fsf@mail.linkov.net> <86edeg2ige.fsf@mail.linkov.net> <21dcf921-acc4-4f94-b383-8ad6d0a57c59@gmx.at> <86v87qpow0.fsf@mail.linkov.net> <4bc98faf-5ebe-4c22-8c9f-04755785fde5@gmx.at> <86wmrjl8m3.fsf@mail.linkov.net> <39fe71c5-db40-49d1-b22b-37b52ed13865@gmx.at> <86jzn6yzae.fsf@mail.linkov.net> <021bb8c2-3f2d-4746-8f04-49f43cf57d16@gmx.at> <86il2mxmxd.fsf@mail.linkov.net> <3fe7e4b4-bc9a-4303-a87f-a360765c597f@gmx.at> <86le6wr3m1.fsf@mail.linkov.net> <86h6hklgia.fsf@gnu.org> <86frx3utds.fsf@mail.linkov.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14115"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rudalics@gmx.at, 68235@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Mar 09 09:35:47 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 1risBH-0003T9-6D for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 09 Mar 2024 09:35:47 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1risB2-0008L0-TM; Sat, 09 Mar 2024 03:35:32 -0500 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 1risB0-0008Ka-I8 for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2024 03:35:30 -0500 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 1risAz-0006WK-MW for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2024 03:35:30 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1risBV-00033b-T2 for bug-gnu-emacs@gnu.org; Sat, 09 Mar 2024 03:36:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 09 Mar 2024 08:36:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68235 X-GNU-PR-Package: emacs Original-Received: via spool by 68235-submit@debbugs.gnu.org id=B68235.170997335911742 (code B ref 68235); Sat, 09 Mar 2024 08:36:01 +0000 Original-Received: (at 68235) by debbugs.gnu.org; 9 Mar 2024 08:35:59 +0000 Original-Received: from localhost ([127.0.0.1]:60510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1risBT-00033K-8M for submit@debbugs.gnu.org; Sat, 09 Mar 2024 03:35:59 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:54432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1risBP-000336-4r for 68235@debbugs.gnu.org; Sat, 09 Mar 2024 03:35:58 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1risAm-0006VB-Ur; Sat, 09 Mar 2024 03:35:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=taq3vxj6h/zTXwc5ZSO7gKb76fIM/r7gB7GrteQluj0=; b=rqcGsH4kky7X ZC2DuLO1pueG5UJ49zK7ndUJW11I4d/8ltqj9xgqHmrCo52FDKzOGRYpgBZQzkwyQrCzMNEQWQfEa adpYWuuruV9fIF4UhZ0oKgsfgQFI8LivUlkC6K742EMfmIER3YzuniS8syIpVyRNMFhwGqwRPqCEf uIj5mPSEiziEE3yu/PC03gWSmp288EbqBiZU6bGtpZB1DQ5ea8s8MExG/Bz4F5rr04EZNxXJtrr7y X78KNVlsvLsGoXB1ZtTymbh0I7U7Y2lyzFgC9oAvphZOlij6uTdjIFIfgocXWeEsefzfhpUR9rwb0 p2L4xh77tv6NrkymM9F0ew==; In-Reply-To: <86frx3utds.fsf@mail.linkov.net> (message from Juri Linkov on Wed, 06 Mar 2024 20:03:50 +0200) 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:281300 Archived-At: > From: Juri Linkov > Cc: rudalics@gmx.at, 68235@debbugs.gnu.org > Date: Wed, 06 Mar 2024 20:03:50 +0200 > > > This doc string doesn't explain enough: it begs the question "what > > does selecting a tab have to do with killing buffers?" > > Here is a better docstring: > > +(defcustom tab-bar-select-keep-windows-function #'tab-bar-select-keep-windows > + "Function that keeps windows after selecting a tab. > +When a previously selected tab displayed a buffer that was later killed, > +this function defines what to do with the window that displayed that buffer > +after switching back to the previous tab. Thanks, this is much more clear now. I suggest a slight rewording: Function called when selecting a tab to handle windows whose buffer was killed. When a tab-bar tab displays a window whose buffer was killed since this tab was last selected, this function determines what to do with that window. > +(defun tab-bar-select-keep-windows (_frame windows) > + "Display a placeholder buffer in the window with killed buffer. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ "...in the window whose buffer was killed." > +A button allows to restore a killed file buffer." "A button in the window allows to restore the killed buffer, if it was visiting a file."