Skip to content

Commit

Permalink
* doc/emacs/frames.texi (Tab Bars): Describe tab-last.
Browse files Browse the repository at this point in the history
'C-9' and 'M-9' already had kindex, so describe them in the text as well
(bug#51444).
  • Loading branch information
link0ff committed Nov 7, 2021
1 parent ffe4004 commit d9b0b73
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
11 changes: 9 additions & 2 deletions doc/emacs/frames.texi
Expand Up @@ -1456,9 +1456,7 @@ names is sorted by recency, so you can use @kbd{M-n}
the second last, and so on.

@kindex C-1, tab bar
@kindex C-9, tab bar
@kindex M-1, tab bar
@kindex M-9, tab bar
@findex tab-select
@vindex tab-bar-select-tab-modifiers
@vindex tab-bar-tab-hints
Expand All @@ -1474,6 +1472,15 @@ name, you can customize another variable @code{tab-bar-tab-hints}.
This will help you decide which numerical key to press to select the
tab by its number.

@kindex C-9, tab bar
@kindex M-9, tab bar
@findex tab-last
@item @var{modifier}-@kbd{9}
Switch to the last tab (@code{tab-last}). The key combination is
the modifier key defined by @code{tab-bar-select-tab-modifiers} and
the key @kbd{9}. With a numeric argument @var{n}, switch to the
@var{n}th last tab.

@kindex C-0, tab bar
@kindex M-0, tab bar
@findex tab-recent
Expand Down
6 changes: 3 additions & 3 deletions etc/NEWS
Expand Up @@ -515,14 +515,14 @@ aligned to the right on the tab bar instead of on the mode line.
When 'tab-bar-format-tabs' is replaced with 'tab-bar-format-tabs-groups',
the tab bar displays tab groups.

---
+++
*** New optional key binding for 'tab-last'.
If you customize the user option 'tab-bar-select-tab-modifiers' to
allow selecting tabs using their index numbers, the '<MODIFIER>-9' key
is bound to 'tab-last', and switches to the last tab. Here <MODIFIER>
is any of the modifiers in the list that is the value of
'tab-bar-select-tab-modifiers'. You can also use negative indices,
which count from the last tab: -1 is the last tab, -2 the one before
'tab-bar-select-tab-modifiers'. You can also use positive indices,
which count from the last tab: 1 is the last tab, 2 the one before
that, etc.

---
Expand Down

0 comments on commit d9b0b73

Please sign in to comment.