GNU bug report logs -
#60073
30.0.50; [PATCH] Tab bar group format not applied to current
Previous Next
Reported by: Gabriel <gabriel376 <at> hotmail.com>
Date: Wed, 14 Dec 2022 20:22:01 UTC
Severity: normal
Tags: patch
Found in version 30.0.50
Fixed in version 29.0.60
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Description:
The user option 'tab-bar-tab-group-format-function' is not applied to
current group tab, only to other group tabs. I suspect this is not
intentional and could be fixed by the attached patch.
Steps:
1) emacs -Q (master "42c757913a4c6acc07f8904df7def6b720bb23b4")
2) Enable tab bar and create some tabs and groups:
(progn
(tab-bar-mode 1)
(tab-bar-change-tab-group "group1")
(tab-new)
(tab-bar-change-tab-group "group2")
(tab-new)
(tab-bar-change-tab-group "group2")
(tab-new)
(tab-bar-change-tab-group "group3"))
3) Set a custom function to format group tabs:
(progn
(defun my-tab-bar-group-format (tab i)
(format "<%s (%s)>"
(funcall tab-bar-tab-group-function tab)
i))
(setopt tab-bar-format '(tab-bar-format-tabs-groups)
tab-bar-tab-group-format-function 'my-tab-bar-group-format))
4) Change tabs a couple of times with 'C-x t o' ('tab-next')
Result: The 'tab-bar-tab-group-format-function' is not applied to format
the current group tab, only to other group tabs. See attach patch for a
proposed fix. If this behavior is intentional, I propose to update the
doc string.
[0001-Fix-incorrect-format-of-current-tab-bar-group.patch (text/x-diff, attachment)]
[Message part 3 (text/plain, inline)]
---
Gabriel
This bug report was last modified 2 years and 251 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.