]> git.eshelyaron.com Git - emacs.git/commitdiff
Call tab-bar-tab-post-open-functions during tabs initialization
authorJuri Linkov <juri@linkov.net>
Wed, 30 Oct 2024 18:32:28 +0000 (20:32 +0200)
committerEshel Yaron <me@eshelyaron.com>
Fri, 1 Nov 2024 13:17:54 +0000 (14:17 +0100)
* 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

index 88b45114f4d5dca1f05dc8c7da2a37fefe3eb0a3..5fba78ff031a19391fc219a3f8e0df01d9aae109 100644 (file)
@@ -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)