diff options
| author | Glenn Morris | 2020-04-29 07:50:20 -0700 |
|---|---|---|
| committer | Glenn Morris | 2020-04-29 07:50:20 -0700 |
| commit | b56401f3849cf6d00717ab8a64a221f2c01455a6 (patch) | |
| tree | 936d8d0fc04faf7aa2ec069c9376a8be09ec5f79 /doc | |
| parent | 17eae91cb1b45711be676bce79bcc5fcd7df2d3d (diff) | |
| parent | 2f9bfaef21043d7894334b33b8538a165250f499 (diff) | |
| download | emacs-b56401f3849cf6d00717ab8a64a221f2c01455a6.tar.gz emacs-b56401f3849cf6d00717ab8a64a221f2c01455a6.zip | |
Merge from origin/emacs-27
2f9bfaef21 (origin/emacs-27) ; Fix last change
520fd3e728 * lisp/env.el (substitute-env-vars): Doc fix. (Bug#40948)
85544f8ef5 * lisp/isearch.el: Fix lazy-highlighting and lazy-counting...
d83cc05a73 Fix error in ERC when 'erc-server-coding-system' is custom...
16fed05ba8 Avoid crashes on TTY frames with over-long compositions
0278741676 Fix typo in custom.texi
9f5ae717fb * test/lisp/simple-tests.el (with-shell-command-dont-erase...
1f76a16ed3 * lisp/image-mode.el (image-mode-map): Update menu items.
f0e1bf56f0 Fix bugs in tab-bar and tab-line and mention remaining fea...
f0b9f18457 Make shell-command tests fit for tcsh.
68f4a740a1 Remove doc duplication
ac31cd384c * etc/NEWS: Fix inconsistencies.
# Conflicts:
# etc/NEWS
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/custom.texi | 2 | ||||
| -rw-r--r-- | doc/emacs/frames.texi | 57 | ||||
| -rw-r--r-- | doc/emacs/windows.texi | 12 | ||||
| -rw-r--r-- | doc/lispref/objects.texi | 3 |
4 files changed, 66 insertions, 8 deletions
diff --git a/doc/emacs/custom.texi b/doc/emacs/custom.texi index e7e879065ed..406f0c96c1f 100644 --- a/doc/emacs/custom.texi +++ b/doc/emacs/custom.texi | |||
| @@ -755,7 +755,7 @@ non-@code{nil} value). If you set a variable using the customization | |||
| 755 | buffer, you need not worry about giving it an invalid type: the | 755 | buffer, you need not worry about giving it an invalid type: the |
| 756 | customization buffer usually only allows you to enter meaningful | 756 | customization buffer usually only allows you to enter meaningful |
| 757 | values. When in doubt, use @kbd{C-h v} (@code{describe-variable}) to | 757 | values. When in doubt, use @kbd{C-h v} (@code{describe-variable}) to |
| 758 | check the variable's documentation string to see kind of value it | 758 | check the variable's documentation string to see what kind of value it |
| 759 | expects (@pxref{Examining}). | 759 | expects (@pxref{Examining}). |
| 760 | 760 | ||
| 761 | @menu | 761 | @menu |
diff --git a/doc/emacs/frames.texi b/doc/emacs/frames.texi index d9373b8bc78..8f448e1aedc 100644 --- a/doc/emacs/frames.texi +++ b/doc/emacs/frames.texi | |||
| @@ -1266,7 +1266,7 @@ Note that the Tab Bar is different from the Tab Line (@pxref{Tab Line}). | |||
| 1266 | Whereas tabs on the Tab Line at the top of each window are used to | 1266 | Whereas tabs on the Tab Line at the top of each window are used to |
| 1267 | switch between buffers, tabs on the Tab Bar at the top of each frame | 1267 | switch between buffers, tabs on the Tab Bar at the top of each frame |
| 1268 | are used to switch between window configurations containing several | 1268 | are used to switch between window configurations containing several |
| 1269 | windows. | 1269 | windows with buffers. |
| 1270 | 1270 | ||
| 1271 | @findex tab-bar-mode | 1271 | @findex tab-bar-mode |
| 1272 | To toggle the use of tab bars, type @kbd{M-x tab-bar-mode}. This | 1272 | To toggle the use of tab bars, type @kbd{M-x tab-bar-mode}. This |
| @@ -1324,6 +1324,10 @@ current before calling the command that adds a new tab. | |||
| 1324 | To start a new tab with other buffers, customize the variable | 1324 | To start a new tab with other buffers, customize the variable |
| 1325 | @code{tab-bar-new-tab-choice}. | 1325 | @code{tab-bar-new-tab-choice}. |
| 1326 | 1326 | ||
| 1327 | @vindex tab-bar-new-tab-to | ||
| 1328 | The variable @code{tab-bar-new-tab-to} defines where to place a new tab. | ||
| 1329 | By default, a new tab is added on the right side of the current tab. | ||
| 1330 | |||
| 1327 | The following commands can be used to delete tabs: | 1331 | The following commands can be used to delete tabs: |
| 1328 | 1332 | ||
| 1329 | @table @kbd | 1333 | @table @kbd |
| @@ -1331,7 +1335,8 @@ To start a new tab with other buffers, customize the variable | |||
| 1331 | @kindex C-x t 0 | 1335 | @kindex C-x t 0 |
| 1332 | @findex tab-close | 1336 | @findex tab-close |
| 1333 | Close the selected tab (@code{tab-close}). It has no effect if there | 1337 | Close the selected tab (@code{tab-close}). It has no effect if there |
| 1334 | is only one tab. | 1338 | is only one tab, unless the variable @code{tab-bar-close-last-tab-choice} |
| 1339 | is customized to a non-default value. | ||
| 1335 | 1340 | ||
| 1336 | @item C-x t 1 | 1341 | @item C-x t 1 |
| 1337 | @kindex C-x t 1 | 1342 | @kindex C-x t 1 |
| @@ -1339,6 +1344,14 @@ is only one tab. | |||
| 1339 | Close all tabs on the selected frame, except the selected one. | 1344 | Close all tabs on the selected frame, except the selected one. |
| 1340 | @end table | 1345 | @end table |
| 1341 | 1346 | ||
| 1347 | @vindex tab-bar-close-tab-select | ||
| 1348 | The variable @code{tab-bar-close-tab-select} defines what tab to | ||
| 1349 | select after closing the current tab. By default, it selects | ||
| 1350 | a recently used tab. | ||
| 1351 | |||
| 1352 | @findex tab-undo | ||
| 1353 | The command @code{tab-undo} restores the last closed tab. | ||
| 1354 | |||
| 1342 | The following commands can be used to switch between tabs: | 1355 | The following commands can be used to switch between tabs: |
| 1343 | 1356 | ||
| 1344 | @table @kbd | 1357 | @table @kbd |
| @@ -1358,22 +1371,60 @@ switches back to the previous Nth tab. | |||
| 1358 | Switch to the previous tab. With a positive numeric argument N, it | 1371 | Switch to the previous tab. With a positive numeric argument N, it |
| 1359 | switches to the previous Nth tab; with a negative argument −N, it | 1372 | switches to the previous Nth tab; with a negative argument −N, it |
| 1360 | switches back to the next Nth tab. | 1373 | switches back to the next Nth tab. |
| 1374 | |||
| 1375 | @item C-x t @key{RET} @var{tabname} @key{RET} | ||
| 1376 | Switch to the tab by its name, with completion on all tab names. | ||
| 1377 | Default values are tab names sorted by recency, so you can use | ||
| 1378 | @kbd{M-n} (@code{next-history-element}) to get the name of the last | ||
| 1379 | visited tab, the second last, and so on. | ||
| 1380 | |||
| 1381 | @item @var{modifier}-@var{tabnumber} | ||
| 1382 | @findex tab-select | ||
| 1383 | Switch to the tab by its number. After customizing the variable | ||
| 1384 | @code{tab-bar-select-tab-modifiers} to specify a @var{modifier} key, you | ||
| 1385 | can select a tab by its ordinal number using the specified modifier in | ||
| 1386 | combination with the tab number to select. To display the tab number | ||
| 1387 | alongside the tab name, you can customize another variable | ||
| 1388 | @code{tab-bar-tab-hints}. This will help you to decide what key to press | ||
| 1389 | to select the tab by its number. | ||
| 1390 | |||
| 1391 | @item @var{modifier}-@kbd{0} | ||
| 1392 | @findex tab-recent | ||
| 1393 | Switch to the recent tab. The key combination is the modifier key | ||
| 1394 | defined by @code{tab-bar-select-tab-modifiers} and the key @kbd{0}. | ||
| 1395 | With a numeric argument N, switch to the Nth recent tab. | ||
| 1361 | @end table | 1396 | @end table |
| 1362 | 1397 | ||
| 1363 | The following commands can be used to operate on tabs: | 1398 | The following commands can be used to operate on tabs: |
| 1364 | 1399 | ||
| 1365 | @table @kbd | 1400 | @table @kbd |
| 1366 | @item C-x t r @var{tabname} @key{RET} | 1401 | @item C-x t r @var{tabname} @key{RET} |
| 1402 | @findex tab-rename | ||
| 1367 | Rename the current tab to @var{tabname}. You can control the | 1403 | Rename the current tab to @var{tabname}. You can control the |
| 1368 | programmatic name given to a tab by default by customizing the | 1404 | programmatic name given to a tab by default by customizing the |
| 1369 | variable @code{tab-bar-tab-name-function}. | 1405 | variable @code{tab-bar-tab-name-function}. |
| 1370 | 1406 | ||
| 1371 | @item C-x t m | 1407 | @item C-x t m |
| 1408 | @findex tab-move | ||
| 1372 | Move the current tab N positions to the right with a positive numeric | 1409 | Move the current tab N positions to the right with a positive numeric |
| 1373 | argument N. With a negative argument −N, it moves the current tab | 1410 | argument N. With a negative argument −N, move the current tab |
| 1374 | N positions to the left. | 1411 | N positions to the left. |
| 1375 | @end table | 1412 | @end table |
| 1376 | 1413 | ||
| 1414 | @findex tab-bar-history-mode | ||
| 1415 | You can enable @code{tab-bar-history-mode} to remember window | ||
| 1416 | configurations used in every tab, and restore them. | ||
| 1417 | |||
| 1418 | @table @kbd | ||
| 1419 | @item tab-bar-history-back | ||
| 1420 | Restore a previous window configuration used in the current tab. | ||
| 1421 | This navigates back in the history of window configurations. | ||
| 1422 | |||
| 1423 | @item tab-bar-history-forward | ||
| 1424 | Cancel restoration of the previous window configuration. | ||
| 1425 | This navigates forward in the history of window configurations. | ||
| 1426 | @end table | ||
| 1427 | |||
| 1377 | @node Dialog Boxes | 1428 | @node Dialog Boxes |
| 1378 | @section Using Dialog Boxes | 1429 | @section Using Dialog Boxes |
| 1379 | @cindex dialog boxes | 1430 | @cindex dialog boxes |
diff --git a/doc/emacs/windows.texi b/doc/emacs/windows.texi index cb5e9bce4d1..4c67660b92d 100644 --- a/doc/emacs/windows.texi +++ b/doc/emacs/windows.texi | |||
| @@ -628,8 +628,16 @@ Selecting the previous window-local tab is the same as typing @kbd{C-x | |||
| 628 | same as @kbd{C-x @key{RIGHT}} (@code{next-buffer}). Both commands | 628 | same as @kbd{C-x @key{RIGHT}} (@code{next-buffer}). Both commands |
| 629 | support a numeric prefix argument as a repeat count. | 629 | support a numeric prefix argument as a repeat count. |
| 630 | 630 | ||
| 631 | You can customize the variable @code{tab-line-tabs-function} to define | ||
| 632 | the preferred contents of the tab line. By default, it displays all | ||
| 633 | buffers previously visited in the window, as described above. But you | ||
| 634 | can also set it to display a list of buffers with the same major mode | ||
| 635 | as the current buffer, or to display buffers grouped by their major | ||
| 636 | mode, where clicking on the mode name in the first tab displays a list | ||
| 637 | of all major modes where you can select another group of buffers. | ||
| 638 | |||
| 631 | Note that the Tab Line is different from the Tab Bar (@pxref{Tab Bars}). | 639 | Note that the Tab Line is different from the Tab Bar (@pxref{Tab Bars}). |
| 632 | Whereas tabs on the Tab Bar at the top of each frame are used to | 640 | Whereas tabs on the Tab Bar at the top of each frame are used to |
| 633 | switch between window configurations containing several windows, | 641 | switch between window configurations containing several windows with buffers, |
| 634 | tabs on the Tab Line at the top of each window are used to switch | 642 | tabs on the Tab Line at the top of each window are used to switch |
| 635 | between buffers. | 643 | between buffers in the window. |
diff --git a/doc/lispref/objects.texi b/doc/lispref/objects.texi index d35a9ace572..cd037d663da 100644 --- a/doc/lispref/objects.texi +++ b/doc/lispref/objects.texi | |||
| @@ -2406,8 +2406,7 @@ call @code{(make-string 3 ?a)} yields a mutable string that can be | |||
| 2406 | changed via later calls to @code{aset}. | 2406 | changed via later calls to @code{aset}. |
| 2407 | 2407 | ||
| 2408 | A mutable object can become constant if it is part of an expression | 2408 | A mutable object can become constant if it is part of an expression |
| 2409 | that is evaluated, because a program should not modify an object | 2409 | that is evaluated. The reverse does not occur: constant objects |
| 2410 | that is being evaluated. The reverse does not occur: constant objects | ||
| 2411 | should stay constant. | 2410 | should stay constant. |
| 2412 | 2411 | ||
| 2413 | Trying to modify a constant variable signals an error | 2412 | Trying to modify a constant variable signals an error |