1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-13 10:20:59 -07:00

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:
Stéphane Marks 2026-02-21 14:37:11 -05:00 committed by Juri Linkov
parent 54411ad169
commit e4b3fa4a00

View file

@ -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)