]> git.eshelyaron.com Git - emacs.git/commit
Fix tab-bar-format-align-right to not call tab-bar-format-global twice
authorJuri Linkov <juri@linkov.net>
Wed, 9 Jul 2025 06:28:05 +0000 (09:28 +0300)
committerEshel Yaron <me@eshelyaron.com>
Thu, 24 Jul 2025 07:52:03 +0000 (09:52 +0200)
commit7bb6d824c7f7031bc182cdcf2fb0c0d325de1354
tree854e29c68df20ab51b430e03290da793e8107bd2
parentaa92e9bd93f2ab2c9042dbaedb69a2723a77eb72
Fix tab-bar-format-align-right to not call tab-bar-format-global twice

* lisp/tab-bar.el (tab-bar-format-align-right): Add optional arg 'rest'
to handle it specially in 'tab-bar-format-list'.  Use the value from 'rest'
instead of calling format functions twice by 'tab-bar-format-list'.
(tab-bar-format-list): When 'format-list' contains the item
'tab-bar-format-align-right', collect the rest of formatted items
and call 'tab-bar-format-align-right' explicitly with the collected
list (bug#78953).

(cherry picked from commit 8b1978fa6e929101b6a766cfbb94c3b27b142fa7)
lisp/tab-bar.el