aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorJuri Linkov2021-03-14 11:29:31 +0200
committerJuri Linkov2021-03-14 11:29:31 +0200
commitf9b737fb9d21ac7adff403274167e76e77d033b8 (patch)
tree98b6a2af59fad4e3ea1a363fafdc138e55d65a81 /etc
parent0a60e5d33c82803d68970c71a2e9ac9fcde5c2c6 (diff)
downloademacs-f9b737fb9d21ac7adff403274167e76e77d033b8.tar.gz
emacs-f9b737fb9d21ac7adff403274167e76e77d033b8.zip
* lisp/tab-bar.el: Tab groups can be displayed with tab-bar-format-tabs-groups
* lisp/tab-bar.el (tab-bar-format): Turn defvar into defcustom. Add :options and force-mode-line-update in :set. (tab-bar--format-tab): New function refactored from tab-bar-format-tabs. (tab-bar-format-tabs): Move most of code to tab-bar--format-tab and call it. (tab-bar-tab-group-format-function): New defcustom. (tab-bar-tab-group-format-default): New function. (tab-bar--format-tab-group, tab-bar-format-tabs-groups): New functions. (tab-bar-format-align-right, tab-bar-format-global): Shorten id. (tab-bar-change-tab-group): Add refs to tab-bar-format in docstring.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS4
1 files changed, 3 insertions, 1 deletions
diff --git a/etc/NEWS b/etc/NEWS
index fa8784db59c..01fd7af65bf 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -519,11 +519,13 @@ It can be used to enable/disable the tab bar individually on each frame
519independently from the value of 'tab-bar-mode' and 'tab-bar-show'. 519independently from the value of 'tab-bar-mode' and 'tab-bar-show'.
520 520
521--- 521---
522*** New variable 'tab-bar-format' defines a list of tab bar items. 522*** New option 'tab-bar-format' defines a list of tab bar items.
523When it contains 'tab-bar-format-global' (possibly appended after 523When it contains 'tab-bar-format-global' (possibly appended after
524'tab-bar-format-align-right'), then after enabling 'display-time-mode' 524'tab-bar-format-align-right'), then after enabling 'display-time-mode'
525(or any other mode that uses 'global-mode-string') it displays time 525(or any other mode that uses 'global-mode-string') it displays time
526aligned to the right on the tab bar instead of the mode line. 526aligned to the right on the tab bar instead of the mode line.
527When 'tab-bar-format-tabs' is replaced with 'tab-bar-format-tabs-groups',
528then the tab bar displays tab groups.
527 529
528--- 530---
529*** 'Mod-9' bound to 'tab-last' now switches to the last tab. 531*** 'Mod-9' bound to 'tab-last' now switches to the last tab.