[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-30 7a3c10dcb56: Backport: Call tab-bar-tab-post-open-functions dur
From: |
Juri Linkov |
Subject: |
emacs-30 7a3c10dcb56: Backport: Call tab-bar-tab-post-open-functions during tabs initialization |
Date: |
Wed, 30 Oct 2024 15:29:31 -0400 (EDT) |
branch: emacs-30
commit 7a3c10dcb56f7287158d155edba04bf80316fbe6
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>
Backport: Call tab-bar-tab-post-open-functions during tabs initialization
* lisp/tab-bar.el (tab-bar-tabs): Run the hook
'tab-bar-tab-post-open-functions' after creating the first tab
in the selected frame's tab-bar list of tabs (bug#74087).
Suggested by Ship Mints <shipmints@gmail.com>.
(cherry picked from commit 2c062dfdf50970766db179ccbad7ce71c541cd72)
---
lisp/tab-bar.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el
index ea36a924c78..e8c6b7f3bcc 100644
--- a/lisp/tab-bar.el
+++ b/lisp/tab-bar.el
@@ -803,7 +803,9 @@ Return its existing value or a new value."
(funcall tab-bar-tab-name-function))))
;; Create default tabs
(setq tabs (list (tab-bar--current-tab-make)))
- (tab-bar-tabs-set tabs frame))
+ (tab-bar-tabs-set tabs frame)
+ (run-hook-with-args 'tab-bar-tab-post-open-functions
+ (car tabs)))
tabs))
(defun tab-bar-tabs-set (tabs &optional frame)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-30 7a3c10dcb56: Backport: Call tab-bar-tab-post-open-functions during tabs initialization,
Juri Linkov <=