]> git.eshelyaron.com Git - emacs.git/commit
Cache 'string-pixel-width' in 'tab-bar-format-align-right' (bug#78953)
authorJuri Linkov <juri@linkov.net>
Wed, 9 Jul 2025 06:32:18 +0000 (09:32 +0300)
committerEshel Yaron <me@eshelyaron.com>
Thu, 24 Jul 2025 07:52:07 +0000 (09:52 +0200)
commit1ff90b47858c1d5f507b84e81de33ef0ca71fba8
tree49c1cb9050079395578bbeba492f6029653f3695
parent7bb6d824c7f7031bc182cdcf2fb0c0d325de1354
Cache 'string-pixel-width' in 'tab-bar-format-align-right' (bug#78953)

* lisp/tab-bar.el (tab-bar--align-right-hash): New internal variable.
(tab-bar-format-align-right): Use memoization for 'string-pixel-width'.

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