Unify tab-bar with window/frame times (bug#80465)
Change 'float-time' to 'window-use-time'. One step closer to "recent" tab selection across all frames with unified pseudo clocks. * lisp/tab-bar.el (tab-bar--tab): Use 'window-use-time'. (tab-bar--current-tab-make): Add time property.
This commit is contained in:
committed by
Juri Linkov
parent
54411ad169
commit
e4b3fa4a00
@@ -1504,7 +1504,7 @@ be scaled for display on the current frame."
|
||||
(funcall tab-bar-tab-name-function)))
|
||||
(explicit-name . ,tab-explicit-name)
|
||||
,@(if tab-group `((group . ,tab-group)))
|
||||
(time . ,(float-time))
|
||||
(time . ,(window-use-time))
|
||||
(ws . ,(window-state-get
|
||||
(frame-root-window (or frame (selected-frame))) 'writable))
|
||||
(wc . ,(current-window-configuration))
|
||||
@@ -1547,6 +1547,7 @@ inherits the current tab's `explicit-name' parameter."
|
||||
(funcall tab-bar-tab-name-function)))
|
||||
(explicit-name . ,tab-explicit-name)
|
||||
,@(if tab-group `((group . ,tab-group)))
|
||||
(time . ,(window-use-time))
|
||||
;; Copy other possible parameters
|
||||
,@(mapcan (lambda (param)
|
||||
(unless (memq (car param)
|
||||
|
||||
Reference in New Issue
Block a user