From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ship Mints Newsgroups: gmane.emacs.bugs Subject: bug#74087: Bug patch: invoke tab-bar-tab-post-open-functions during tabs initialization Date: Tue, 29 Oct 2024 10:12:38 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="00000000000020489006259e2e09" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8346"; mail-complaints-to="usenet@ciao.gmane.io" To: 74087@debbugs.gnu.org, juri@linkov.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 29 15:13: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 1t5myH-00021E-Cm for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 29 Oct 2024 15:13:21 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t5my0-0002PY-4b; Tue, 29 Oct 2024 10:13:04 -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 1t5mxy-0002PO-QQ for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 10:13: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 1t5mxy-0006KF-H7 for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 10:13:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=Date:From:MIME-Version:To:Subject; bh=Ed8KJ77Pn75cgJKepHq7a//3eXAEv12CC9UOitQA5/4=; b=Z3RM3Ht78cYh0D9uzEbE1El9+rrTvm6G80LK2VQdr28VPC8JL/E1jRf/q1VhTD+9QW2S9jG1g3PDYwmQwtuotoDue7VXoF1uXyPMwBNH5znRf6uUCJSvWcDps5zVDFbpoI1RipZQVYaTbWQx58y8CTlCESgOZMEfNn2krNkvNmPvSJA640fLzaCt+g7PwBlJy+eAzTy134jIisnBY+41k4F9vNt1OFQoCtQtck984UdcoezEtm0D5fzVOeQOUxwvauLiphG+zdw+h2cRzNGJbfVPaxWK55xWSMLQg1Oyyx8BtirgjfNSsUBtUAC0WpPpsmM205bd7se2YgvhNyJKqw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1t5mxy-0006Gb-2S for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 10:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ship Mints Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 29 Oct 2024 14:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 74087 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, Juri Linkov Original-Received: via spool by submit@debbugs.gnu.org id=B.173021117424078 (code B ref -1); Tue, 29 Oct 2024 14:13:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 29 Oct 2024 14:12:54 +0000 Original-Received: from localhost ([127.0.0.1]:56562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5mxq-0006GI-1J for submit@debbugs.gnu.org; Tue, 29 Oct 2024 10:12:54 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:32980) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1t5mxo-0006GC-FK for submit@debbugs.gnu.org; Tue, 29 Oct 2024 10:12:53 -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 1t5mxn-0002Og-T3 for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 10:12:51 -0400 Original-Received: from mail-vs1-xe2f.google.com ([2607:f8b0:4864:20::e2f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t5mxm-0006J5-EK for bug-gnu-emacs@gnu.org; Tue, 29 Oct 2024 10:12:51 -0400 Original-Received: by mail-vs1-xe2f.google.com with SMTP id ada2fe7eead31-4a47177cf6bso1875978137.3 for ; Tue, 29 Oct 2024 07:12:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730211169; x=1730815969; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=kOdQLHCBv8OZTc8WD+t2kQtp3qdaOtyP1FoSuppTxTI=; b=nsyUwouWk9NRbzYPM+7sa2mTCTaCWlXcuN9OvKdC4ZE8jpl/7ztQq+GVOOkp+PcIKT IP3prG7nBbp4ROsZLprPuEf2qhrDOyYexQdfKZftSWqaCHesMVHQAhFR7IIHMdNkNYX1 ZhntnWykKFb6xxEUGeGZo2uVrxNFbPPqyObe5tUrgyRnHRcqEuiiBh+qvICX7bmQMD2P qhvfOUp11VNBeLY70ixq9kgt8CgxzoKh30upN10zGzjwZEwYIWpbmS12D+Dk6ZNULm5L /l8waDeCh1hA4CJ26MSWywd+NftUl0sI3EPAzW+uJ/++hxbVn0/R4V5yr0Br3vqPZKcB O8cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730211169; x=1730815969; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=kOdQLHCBv8OZTc8WD+t2kQtp3qdaOtyP1FoSuppTxTI=; b=lp7S8PN0SVeItZA9v6nrKnWOkMPkKfBye0xwR6k2WV5zhmnkYTkWaOgul60lMiYkyC 01XLaCR61SOHrBn7/Nqq/MhoD6HEJPBusHde/apOuyL0IPphwufSqCGh/w+Byjo+kfHn LAlkreGrwGwtBJTsxkPcesCpwrZdR3E1FP8cdR3I7MaHcqxykfOw6IvAU+FjM4R4BjC8 fpBr37rxQExOAUaP2+OL7O69odWvUnSVx90GUCen8uZqvKNr0+L19vxnTudD8JPQsDK4 yFU2MeDLfcRbBLC3lGOn5IEyVo2c0E2qj0WkfCLpuKHVzecPO6MJsEgt9CWb/HKb4/rv ElHQ== X-Gm-Message-State: AOJu0Yxo0PG5ta7hEzrMVgn5dhwLbcYun1XLFtj9msO1JCv8kyoD5Kfx 05KzzZbfXnSt9EeZ5vQMLtGPkJ3sJdGKz85Dem8b0mjvhivy/3WEPHIFjtL/F/JLbVAKJ3j2Ec5 fdFb2g+9ymuRCAG/zj98O4Ky2CwL+45Tn X-Google-Smtp-Source: AGHT+IHd1phT7ehnptrJGdVp1PfyXrc8Zy6fpOX7NH3ylFRl/Md3XXaNSvZPbxFgFn+oTKvLpzXKa89WNDUGQFZbjuc= X-Received: by 2002:a05:6122:20a1:b0:50c:99da:4f70 with SMTP id 71dfb90a1353d-51014ff5f49mr10012107e0c.2.1730211169184; Tue, 29 Oct 2024 07:12:49 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::e2f; envelope-from=shipmints@gmail.com; helo=mail-vs1-xe2f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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:294492 Archived-At: --00000000000020489006259e2e09 Content-Type: multipart/alternative; boundary="00000000000020488f06259e2e07" --00000000000020488f06259e2e07 Content-Type: text/plain; charset="UTF-8" Greetings, tab-bar-tab-post-open-functions need to be called during tab-bar initialization. Currently, a user's custom post-open functions are invoked only for tabs created beyond the initial tab. This is a bug, in my view. I've created the patch vs. this morning's master and should also benefit Emacs 30. I've been running a patched copy against my daily-use 29.4 for a bit and it works as expected. -Stephane --00000000000020488f06259e2e07 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Greetings,

tab-bar-tab-post-open-functions=C2=A0need=C2=A0to be called during tab-bar= initialization. Currently, a user's custom post-open functions are inv= oked only for tabs created beyond the initial tab. This is a bug, in my vie= w.

I've c= reated the patch vs. this morning's master and should also benefit Emac= s 30. I've been running a patched copy against my daily-use 29.4 for a = bit and it works as expected.

-Stephane
--00000000000020488f06259e2e07-- --00000000000020489006259e2e09 Content-Type: application/octet-stream; name="0001-Call-tab-bar-tab-post-open-functions-during-tabs-ini.patch" Content-Disposition: attachment; filename="0001-Call-tab-bar-tab-post-open-functions-during-tabs-ini.patch" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_m2uio8bp0 RnJvbSA2MWE4MDFlZWRiMTBkM2QwZGFjNWNmOGI1N2M2YjM2N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