diff options
| author | Juri Linkov | 2024-10-30 20:32:28 +0200 |
|---|---|---|
| committer | Juri Linkov | 2024-10-30 20:32:28 +0200 |
| commit | 2c062dfdf50970766db179ccbad7ce71c541cd72 (patch) | |
| tree | 131fb27174e338dbbc8c193cf3d25abdcf841ee8 | |
| parent | 57fe24961fd1df04c9df1ba790932d6545f729e8 (diff) | |
| download | emacs-2c062dfdf50970766db179ccbad7ce71c541cd72.tar.gz emacs-2c062dfdf50970766db179ccbad7ce71c541cd72.zip | |
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>.
| -rw-r--r-- | lisp/tab-bar.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el index 2efc2b8f85b..7fc04ab3c32 100644 --- a/lisp/tab-bar.el +++ b/lisp/tab-bar.el | |||
| @@ -803,7 +803,9 @@ Return its existing value or a new value." | |||
| 803 | (funcall tab-bar-tab-name-function)))) | 803 | (funcall tab-bar-tab-name-function)))) |
| 804 | ;; Create default tabs | 804 | ;; Create default tabs |
| 805 | (setq tabs (list (tab-bar--current-tab-make))) | 805 | (setq tabs (list (tab-bar--current-tab-make))) |
| 806 | (tab-bar-tabs-set tabs frame)) | 806 | (tab-bar-tabs-set tabs frame) |
| 807 | (run-hook-with-args 'tab-bar-tab-post-open-functions | ||
| 808 | (car tabs))) | ||
| 807 | tabs)) | 809 | tabs)) |
| 808 | 810 | ||
| 809 | (defun tab-bar-tabs-set (tabs &optional frame) | 811 | (defun tab-bar-tabs-set (tabs &optional frame) |