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#74087: Bug patch: invoke tab-bar-tab-post-open-functions during tabs initialization Date: Tue, 29 Oct 2024 21:07:46 +0200 Organization: LINKOV.NET Message-ID: <86ttcu20e5.fsf@mail.linkov.net> References: <86a5em4w18.fsf@mail.linkov.net> <861pzy3fot.fsf@mail.linkov.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="2641"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) Cc: 74087@debbugs.gnu.org To: Ship Mints Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 29 20:10:21 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 1t5rbh-0000Vq-6E for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Oct 2024 20:10:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5rbS-0004qN-TV; Tue, 29 Oct 2024 15:10:07 -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 1t5rbP-0004pu-6h for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 15:10:03 -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 1t5rbO-0002hq-Ua for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 15:10:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=hpghGg/eb3jZLY9bDhg869YCwy3IPUeeE5EEoc8xeXE=; b=IPI3Jv8gF18jGKEdhcL5+eRtKbu9gpyMFHpNMSSoCJ7Z1snfVByoOUd6wc0Z/kwrGeMNT4vYROqxKyJUcHxE7QrNzsAj/3dSH7hpoLRMO+fYWLGr63GvTD9LjZJxkxS+nY23Fp7SsIVNqSZb+8KX+wZ3ClmIOAE1F/UUPNUtgL889cXEnOsHRxfoGvglFZuRrphyPtpq4V/SnQDSnndqup6GEW1Skhay0Bi6A10+SvYly0WqHVI0Ymz7bQC24RpkaMNmPEZhZzUud0CY2e18rnINr8ysSY3zTYj0t/f89sDo1cAAqjZPNRJPPLRsuGD/YesPe3iKk1KrJum21wjSlw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t5rbN-00071X-Na for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 15:10:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Oct 2024 19:10:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74087 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.173022895226975 (code B ref -1); Tue, 29 Oct 2024 19:10:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Oct 2024 19:09:12 +0000 Original-Received: from localhost ([127.0.0.1]:58199 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5raa-000711-9o for submit@debbugs.gnu.org; Tue, 29 Oct 2024 15:09:12 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:33748) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5raX-00070r-8V for submit@debbugs.gnu.org; Tue, 29 Oct 2024 15:09:10 -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 1t5raW-0004XI-Pn for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 15:09:08 -0400 Original-Received: from relay4-d.mail.gandi.net ([2001:4b98:dc4:8::224]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1t5raU-0002d1-8c for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 15:09:08 -0400 Original-Received: by mail.gandi.net (Postfix) with ESMTPSA id A7C53E0002; Tue, 29 Oct 2024 19:08:58 +0000 (UTC) In-Reply-To: (Ship Mints's message of "Tue, 29 Oct 2024 15:03:29 -0400") X-GND-Sasl: juri@linkov.net Received-SPF: pass client-ip=2001:4b98:dc4:8::224; envelope-from=juri@linkov.net; helo=relay4-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:294527 Archived-At: > I think my proposed patch is more natural for implied-open tabs (with the > tab bar showing or not, doesn't really matter) or explicitly opened ones. > Just invoke when the tabs are created seems the best route and the one that > people would expect reading the code. > > I'll have a look at the close hooks again in a bit. I do know the behavior > of the pre-close hook is good for my uses. Since the behavior of the pre-close hook is good for your uses, then the best solution for you would be to introduce a new similar hook: 'tab-bar-tab-pre-open-functions' that will be called in the first tab as well.