[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-28 8d9b553 2/2: * doc/emacs/frames.texi (Tab Bars): Add text about
From: |
Juri Linkov |
Subject: |
emacs-28 8d9b553 2/2: * doc/emacs/frames.texi (Tab Bars): Add text about mouse and tab-bar-format |
Date: |
Sun, 7 Nov 2021 13:01:32 -0500 (EST) |
branch: emacs-28
commit 8d9b55330d32e0bd4667a14c1d931b5ece9be5da
Author: Juri Linkov <juri@linkov.net>
Commit: Juri Linkov <juri@linkov.net>
* 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)
---
doc/emacs/frames.texi | 10 ++++++++++
etc/NEWS | 3 ++-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi
index 3514821..c14ada2 100644
--- a/doc/emacs/frames.texi
+++ b/doc/emacs/frames.texi
@@ -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
diff --git a/etc/NEWS b/etc/NEWS
index 54a099d..dc1eb86 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -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'