diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el index c19b754543..7f9b56c7d2 100644 --- a/lisp/tab-bar.el +++ b/lisp/tab-bar.el @@ -931,7 +931,15 @@ tab-bar--tab (wc-bl . ,bl) (wc-bbl . ,bbl) (wc-history-back . ,(gethash (or frame (selected-frame)) tab-bar-history-back)) - (wc-history-forward . ,(gethash (or frame (selected-frame)) tab-bar-history-forward))))) + (wc-history-forward . ,(gethash (or frame (selected-frame)) tab-bar-history-forward)) + ;; Copy other possible parameters + ,@(mapcan (lambda (param) + (unless (memq (car param) + '(name explicit-name group time + ws wc wc-point wc-bl wc-bbl + wc-history-back wc-history-forward)) + (list param))) + (cdr tab))))) (defun tab-bar--current-tab (&optional tab frame) (tab-bar--current-tab-make (or tab (tab-bar--current-tab-find nil frame)))) @@ -951,7 +959,15 @@ tab-bar--current-tab-make (alist-get 'name tab) (funcall tab-bar-tab-name-function))) (explicit-name . ,tab-explicit-name) - ,@(if tab-group `((group . ,tab-group)))))) + ,@(if tab-group `((group . ,tab-group))) + ;; Copy other possible parameters + ,@(mapcan (lambda (param) + (unless (memq (car param) + '(name explicit-name group time + ws wc wc-point wc-bl wc-bbl + wc-history-back wc-history-forward)) + (list param))) + (cdr tab))))) (defun tab-bar--current-tab-find (&optional tabs frame) (assq 'current-tab (or tabs (funcall tab-bar-tabs-function frame))))