diff options
| author | Eli Zaretskii | 2019-10-05 16:03:43 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2019-10-05 16:03:43 +0300 |
| commit | 9cf8454463ab0249c3b680f892507743b3be972e (patch) | |
| tree | cb50cfd8f4cacddc12405ed621a9486f503237c3 | |
| parent | 2fa9699fd795a081420682877fc448ff2391f9bd (diff) | |
| download | emacs-9cf8454463ab0249c3b680f892507743b3be972e.tar.gz emacs-9cf8454463ab0249c3b680f892507743b3be972e.zip | |
Improve documentation of Tab bars
* doc/emacs/frames.texi (Menu Bars, Tool Bars, Tab Bars):
Don't start index entries from a capital letter.
(Tab Bars): Improve wording and indexing.
* etc/NEWS: Improve documentation of Tab bars.
| -rw-r--r-- | doc/emacs/frames.texi | 58 | ||||
| -rw-r--r-- | etc/NEWS | 51 |
2 files changed, 53 insertions, 56 deletions
diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi index 0cb9c4eb1d7..2acc65c189a 100644 --- a/doc/emacs/frames.texi +++ b/doc/emacs/frames.texi | |||
| @@ -1152,7 +1152,7 @@ cursor during dragging. To suppress such behavior, set the options | |||
| 1152 | 1152 | ||
| 1153 | @node Menu Bars | 1153 | @node Menu Bars |
| 1154 | @section Menu Bars | 1154 | @section Menu Bars |
| 1155 | @cindex Menu Bar mode | 1155 | @cindex menu bar mode |
| 1156 | @cindex mode, Menu Bar | 1156 | @cindex mode, Menu Bar |
| 1157 | @findex menu-bar-mode | 1157 | @findex menu-bar-mode |
| 1158 | @vindex menu-bar-mode | 1158 | @vindex menu-bar-mode |
| @@ -1177,7 +1177,7 @@ menus' visual appearance. | |||
| 1177 | 1177 | ||
| 1178 | @node Tool Bars | 1178 | @node Tool Bars |
| 1179 | @section Tool Bars | 1179 | @section Tool Bars |
| 1180 | @cindex Tool Bar mode | 1180 | @cindex tool bar mode |
| 1181 | @cindex mode, Tool Bar | 1181 | @cindex mode, Tool Bar |
| 1182 | @cindex icons, toolbar | 1182 | @cindex icons, toolbar |
| 1183 | 1183 | ||
| @@ -1217,50 +1217,48 @@ displayed by moving the mouse pointer to the top of the screen. | |||
| 1217 | 1217 | ||
| 1218 | @node Tab Bars | 1218 | @node Tab Bars |
| 1219 | @section Tab Bars | 1219 | @section Tab Bars |
| 1220 | @cindex Tab Bar mode | 1220 | @cindex tab bar mode |
| 1221 | @cindex mode, Tab Bar | 1221 | @cindex mode, Tab Bar |
| 1222 | @cindex tabs, tabbar | 1222 | @cindex tabs, tabbar |
| 1223 | 1223 | ||
| 1224 | On graphical displays and on text terminals, Emacs puts a @dfn{tab bar} | 1224 | On graphical displays and on text terminals, Emacs can optionally |
| 1225 | at the top of each frame, just below the menu bar. This is a row of | 1225 | display a @dfn{Tab Bar} at the top of each frame, just below the menu |
| 1226 | tabs which you can click on with the mouse to switch window configurations. | 1226 | bar. The Tab Bar is a row of @dfn{tabs}---buttons that you can click |
| 1227 | to switch between window configurations on that frame. | ||
| 1227 | 1228 | ||
| 1228 | Each tab on the tab bar represents a named persistent window | 1229 | Each tab on the Tab Bar represents a named persistent window |
| 1229 | configuration. Its name is composed from the names of buffers | 1230 | configuration. Its name is composed from the list of names of buffers |
| 1230 | visible in windows of the window configuration. Clicking on the | 1231 | visible in windows of that window configuration. Clicking on the tab |
| 1231 | tab name switches the current window configuration to the previously | 1232 | switches to the window configuration recorded by the tab; it is a |
| 1232 | used configuration of windows and buffers. | 1233 | configuration of windows and buffers which was previously used in the |
| 1234 | frame when that tab was the current tab. | ||
| 1233 | 1235 | ||
| 1234 | If you are using the desktop library to save and restore your | 1236 | If you are using the desktop library to save and restore your |
| 1235 | sessions, the tabs from the tab bar are recorded in the desktop file, | 1237 | sessions (@pxref{Saving Emacs Sesions}), the tabs from the Tab Bar are |
| 1236 | together with their associated window configurations. | 1238 | recorded in the desktop file, together with their associated window |
| 1239 | configurations, and will be available after restoring the session. | ||
| 1237 | 1240 | ||
| 1238 | @findex tab-bar-mode | 1241 | @findex tab-bar-mode |
| 1239 | @vindex tab-bar-mode | ||
| 1240 | To toggle the use of tab bars, type @kbd{M-x tab-bar-mode}. This | 1242 | To toggle the use of tab bars, type @kbd{M-x tab-bar-mode}. This |
| 1241 | command applies to all frames, including frames yet to be created. To | 1243 | command applies to all frames, including frames yet to be created. To |
| 1242 | control the use of tab bars at startup, customize the variable | 1244 | control the use of tab bars at startup, customize the variable |
| 1243 | @code{tab-bar-mode}. | 1245 | @code{tab-bar-mode}. |
| 1244 | 1246 | ||
| 1245 | @vindex tab-bar-show | 1247 | @vindex tab-bar-show |
| 1246 | @cindex Tab Bar show | 1248 | The variable @code{tab-bar-show} controls whether the Tab Bar mode |
| 1247 | This variable is intended to toggle the tab bar automatically. | 1249 | is turned on automatically. If the value is @code{t}, then |
| 1248 | When the value is @code{t}, then @code{tab-bar-mode} is enabled when | 1250 | @code{tab-bar-mode} is enabled when using the commands that create new |
| 1249 | using the commands that create new window configurations. The value | 1251 | tabs. The value @code{1} hides the tab bar when it has only one tab, |
| 1250 | @code{1} hides the tab bar when it has only one tab, and shows it | 1252 | and shows it again when more tabs are created. The value @code{nil} |
| 1251 | again once more tabs are created. If @code{nil}, always keep the tab | 1253 | always keeps the tab bar hidden; in this case it's still possible to |
| 1252 | bar hidden. In this case it's still possible to use persistent named | 1254 | use persistent named window configurations without using the tab bar |
| 1253 | window configurations without using the tab bar by relying on keyboard | 1255 | by typing the related commands: @kbd{M-x tab-new}, @kbd{M-x tab-next}, |
| 1254 | commands that create a new window configuration (@kbd{M-x tab-new}), | 1256 | @kbd{M-x tab-list}, @kbd{M-x tab-close}, etc. |
| 1255 | that switch windows configurations (@kbd{M-x tab-next}, @kbd{M-x | ||
| 1256 | tab-list}), or delete the existing ones (@kbd{M-x tab-close}). | ||
| 1257 | 1257 | ||
| 1258 | @vindex tab-bar-new-tab-choice | 1258 | @vindex tab-bar-new-tab-choice |
| 1259 | @cindex Tab Bar new tab | 1259 | By default, a new tab starts with the current buffer that was |
| 1260 | By default, Emacs follows the same behavior as when creating frames, | 1260 | current before calling the command that adds a new tab. To start a |
| 1261 | to start a new tab with the current buffer, i.e. the buffer | 1261 | new tab with other buffers, customize the variable |
| 1262 | that was current before calling the command that adds a new tab. | ||
| 1263 | To start a new tab with other buffers, customize the variable | ||
| 1264 | @code{tab-bar-new-tab-choice}. | 1262 | @code{tab-bar-new-tab-choice}. |
| 1265 | 1263 | ||
| 1266 | @node Dialog Boxes | 1264 | @node Dialog Boxes |
| @@ -2040,33 +2040,32 @@ file-local variable, you may need to update the value. | |||
| 2040 | 2040 | ||
| 2041 | * New Modes and Packages in Emacs 27.1 | 2041 | * New Modes and Packages in Emacs 27.1 |
| 2042 | 2042 | ||
| 2043 | ** 'tab-bar-mode' enables the tab-bar at the top of each frame, | 2043 | ** Tab Bars |
| 2044 | to switch named persistent window configurations in it using tabs. | 2044 | |
| 2045 | New tab-based keybindings (similar to frame-based commands): | 2045 | +++ |
| 2046 | 'C-x 6 2' creates a new tab; | 2046 | *** Tab-Bar mode |
| 2047 | 'C-x 6 0' deletes the current tab; | 2047 | The new command 'tab-bar-mode' enables the tab-bar at the top of each |
| 2048 | 'C-x 6 b' switches to buffer in another tab; | 2048 | frame, where you can use tabs to switch between named persistent |
| 2049 | 'C-x 6 f' and 'C-x 6 C-f' edit file in another tab; | 2049 | window configurations. |
| 2050 | 'C-TAB' switches to the next tab; | 2050 | |
| 2051 | 'S-C-TAB' switches to the previous tab. | 2051 | The 'C-x 6' sequence is the new prefix key for tab-related commands: |
| 2052 | 2052 | 'C-x 6 2' creates a new tab; 'C-x 6 0' deletes the current tab; | |
| 2053 | Also it's possible to switch named persistent window configurations | 2053 | 'C-x 6 b' switches to buffer in another tab; 'C-x 6 f' and 'C-x 6 C-f' |
| 2054 | without having graphical access to the tab-bar, even on a tty | 2054 | edit file in another tab; and 'C-TAB' and 'S-C-TAB' switch to the next |
| 2055 | or when 'tab-bar-mode' is disabled, with these commands: | 2055 | or previous tab. You can also switch between tabs and create/delete |
| 2056 | 'tab-new' creates a new window configuration; | 2056 | tabs with a mouse. |
| 2057 | 'tab-close' deletes the current window configuration; | 2057 | |
| 2058 | 'tab-select' switches to the window configuration by its name; | 2058 | Tab-related commands are available even when the Tab-Bar mode is |
| 2059 | 'tab-previous' switches to the previous window configuration; | 2059 | disabled: by default, they enable Tab-Bar mode in that case. |
| 2060 | 'tab-next' switches to the next window configuration; | 2060 | |
| 2061 | 'tab-list' displays a list of named window configurations for switching. | 2061 | *** Tab-Line mode |
| 2062 | 2062 | The new command 'global-tab-line-mode' enables the tab-line above each | |
| 2063 | ** 'global-tab-line-mode' enables the tab-line above each window to | 2063 | window, which you can use to switch buffers in the window. Selecting |
| 2064 | switch buffers in it to previous/next buffers. Selecting a previous | 2064 | the previous window-local tab is the same as typing 'C-x <LEFT>' |
| 2065 | window-local tab is the same as running 'C-x <left>' (previous-buffer), | 2065 | (previous-buffer), selecting the next tab is the same as 'C-x <RIGHT>' |
| 2066 | selecting a next tab switches to the tab available by 'C-x <right>' | ||
| 2067 | (next-buffer). Clicking on the plus icon adds a new buffer to the | 2066 | (next-buffer). Clicking on the plus icon adds a new buffer to the |
| 2068 | window-local tab-line of window buffers. Using the mouse wheel on the | 2067 | window-local tab-line of buffers. Using the mouse wheel on the |
| 2069 | tab-line scrolls the window buffers whose names are displayed in tabs. | 2068 | tab-line scrolls tabs that display the window buffers. |
| 2070 | 2069 | ||
| 2071 | ** fileloop.el lets one setup multifile operations like search&replace. | 2070 | ** fileloop.el lets one setup multifile operations like search&replace. |
| 2072 | 2071 | ||