* doc/emacs/frames.texi (Tab Bars): Add text about mouse and tab-bar-format

Briefly describe mouse commands on the tab bar and tab-bar-format (bug#51444)
This commit is contained in:
Juri Linkov 2021-11-07 20:00:56 +02:00
parent d9b0b730e8
commit 8d9b55330d
2 changed files with 12 additions and 1 deletions

View file

@ -1508,6 +1508,13 @@ to the right; with a negative argument @minus{}@var{n}, move it
@var{n} positions to the left.
@end table
You can use the mouse to operate on tabs. Clicking @kbd{mouse-2}
closes the tab. Clicking @kbd{mouse-3} pops up the context menu with
the items that operate on the clicked tab. Dragging the tab with
@kbd{mouse-1} moves it to another position on the tab bar. Mouse
wheel scrolling switches to the next or previous tab. Holding down
the @key{SHIFT} key during scrolling moves the tab to the left or right.
@findex tab-bar-history-mode
You can enable @code{tab-bar-history-mode} to remember window
configurations used in every tab, and later restore them.
@ -1524,6 +1531,9 @@ Cancel restoration of the previous window configuration.
This moves forward in the history of window configurations.
@end table
It's possible to customize the items displayed on the tab bar
by the user option @code{tab-bar-format}.
@node Dialog Boxes
@section Using Dialog Boxes
@cindex dialog boxes

View file

@ -486,6 +486,7 @@ command 'other-tab-prefix'.
+++
*** New command 'C-x t C-r' to open file read-only in the other tab.
+++
*** The tab bar now supports more mouse commands.
Clicking 'mouse-2' closes the tab, 'mouse-3' displays the context menu
with items that operate on the clicked tab. Dragging the tab with
@ -506,7 +507,7 @@ frame regardless of the values of 'tab-bar-mode' and 'tab-bar-show'.
This allows enabling/disabling the tab bar independently on different
frames.
---
+++
*** New user option 'tab-bar-format' defines a list of tab bar items.
When it contains 'tab-bar-format-global' (possibly appended after
'tab-bar-format-align-right'), then after enabling 'display-time-mode'