diff options
| author | Richard M. Stallman | 2005-02-03 07:22:46 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2005-02-03 07:22:46 +0000 |
| commit | 7354ca011daefc7a0a7e7e7ce51c8453f33e69d3 (patch) | |
| tree | 9d01f0b36d821d90b7fe9c656d4d39dbe9b813e2 | |
| parent | 7f9c94b0881d5089d66d1706cfec60f97745c3c2 (diff) | |
| download | emacs-7354ca011daefc7a0a7e7e7ce51c8453f33e69d3.tar.gz emacs-7354ca011daefc7a0a7e7e7ce51c8453f33e69d3.zip | |
(Select Buffer): Doc next-buffer and prev-buffer.
(List Buffers): Clarify.
(Several Buffers): Doc T command.
(Buffer Convenience): Clarify menu.
| -rw-r--r-- | man/buffers.texi | 66 |
1 files changed, 46 insertions, 20 deletions
diff --git a/man/buffers.texi b/man/buffers.texi index 558b636de60..97234966b4b 100644 --- a/man/buffers.texi +++ b/man/buffers.texi | |||
| @@ -67,6 +67,10 @@ megabytes. | |||
| 67 | @table @kbd | 67 | @table @kbd |
| 68 | @item C-x b @var{buffer} @key{RET} | 68 | @item C-x b @var{buffer} @key{RET} |
| 69 | Select or create a buffer named @var{buffer} (@code{switch-to-buffer}). | 69 | Select or create a buffer named @var{buffer} (@code{switch-to-buffer}). |
| 70 | @item C-x @key{LEFT} | ||
| 71 | Select the previous buffer in the list of existing buffers. | ||
| 72 | @item C-x @key{RIGHT} | ||
| 73 | Select the next buffer in the list of existing buffers. | ||
| 70 | @item C-x 4 b @var{buffer} @key{RET} | 74 | @item C-x 4 b @var{buffer} @key{RET} |
| 71 | Similar, but select @var{buffer} in another window | 75 | Similar, but select @var{buffer} in another window |
| 72 | (@code{switch-to-buffer-other-window}). | 76 | (@code{switch-to-buffer-other-window}). |
| @@ -84,6 +88,16 @@ name you want (@pxref{Completion}). An empty argument to @kbd{C-x b} | |||
| 84 | specifies the buffer that was current most recently among those not | 88 | specifies the buffer that was current most recently among those not |
| 85 | now displayed in any window. | 89 | now displayed in any window. |
| 86 | 90 | ||
| 91 | @kindex C-x @key{LEFT} | ||
| 92 | @kindex C-x @key{RIGHT} | ||
| 93 | @findex next-buffer | ||
| 94 | @findex prev-buffer | ||
| 95 | For conveniently switching between a few buffers, use the commands | ||
| 96 | @kbd{C-x @key{LEFT}} and @kbd{C-x @key{RIGHT}}. @kbd{C-x @key{RIGHT}} | ||
| 97 | (@code{prev-buffer}) selects the previous buffer (following the order | ||
| 98 | of most recent selection), while @kbd{C-x @key{LEFT}} | ||
| 99 | (@code{next-buffer}) moves through buffers in the reverse direction. | ||
| 100 | |||
| 87 | @kindex C-x 4 b | 101 | @kindex C-x 4 b |
| 88 | @findex switch-to-buffer-other-window | 102 | @findex switch-to-buffer-other-window |
| 89 | @vindex even-window-heights | 103 | @vindex even-window-heights |
| @@ -141,9 +155,9 @@ List the existing buffers (@code{list-buffers}). | |||
| 141 | @cindex listing current buffers | 155 | @cindex listing current buffers |
| 142 | @kindex C-x C-b | 156 | @kindex C-x C-b |
| 143 | @findex list-buffers | 157 | @findex list-buffers |
| 144 | To display a list of all the buffers that exist, type @kbd{C-x C-b}. | 158 | To display a list of existing buffers, type @kbd{C-x C-b}. Each |
| 145 | Each line in the list shows one buffer's name, major mode and visited | 159 | line in the list shows one buffer's name, major mode and visited file. |
| 146 | file. The buffers are listed in the order that they were current; the | 160 | The buffers are listed in the order that they were current; the |
| 147 | buffers that were current most recently come first. | 161 | buffers that were current most recently come first. |
| 148 | 162 | ||
| 149 | @samp{*} in the first field of a line indicates the buffer is ``modified.'' | 163 | @samp{*} in the first field of a line indicates the buffer is ``modified.'' |
| @@ -171,7 +185,7 @@ directory @file{~/cvs/emacs/src/}. You can list only buffers that are | |||
| 171 | visiting files by giving the command a prefix; for instance, by typing | 185 | visiting files by giving the command a prefix; for instance, by typing |
| 172 | @kbd{C-u C-x C-b}. | 186 | @kbd{C-u C-x C-b}. |
| 173 | 187 | ||
| 174 | @code{list-buffers} omits buffers whose name begins with a blank, | 188 | @code{list-buffers} omits buffers whose names begin with a space, |
| 175 | unless they visit files: such buffers are used internally by Emacs. | 189 | unless they visit files: such buffers are used internally by Emacs. |
| 176 | 190 | ||
| 177 | @need 2000 | 191 | @need 2000 |
| @@ -332,8 +346,9 @@ Similar, but do it in another window. | |||
| 332 | buffers@footnote{Buffers which don't visit files and whose names begin | 346 | buffers@footnote{Buffers which don't visit files and whose names begin |
| 333 | with a space are omitted: these are used internally by Emacs.} into the | 347 | with a space are omitted: these are used internally by Emacs.} into the |
| 334 | buffer @samp{*Buffer List*}, and selects that buffer in Buffer Menu | 348 | buffer @samp{*Buffer List*}, and selects that buffer in Buffer Menu |
| 335 | mode. The list in the @samp{*Buffer List*} buffer looks exactly as | 349 | mode. |
| 336 | described in @ref{List Buffers}. The buffer is read-only, and can be | 350 | |
| 351 | The buffer is read-only, and can be | ||
| 337 | changed only through the special commands described in this section. | 352 | changed only through the special commands described in this section. |
| 338 | The usual Emacs cursor motion commands can be used in the @samp{*Buffer | 353 | The usual Emacs cursor motion commands can be used in the @samp{*Buffer |
| 339 | List*} buffer. The following commands apply to the buffer described on | 354 | List*} buffer. The following commands apply to the buffer described on |
| @@ -411,21 +426,32 @@ any buffers previously marked with the @kbd{m} command. If you have not | |||
| 411 | marked any buffers, this command is equivalent to @kbd{1}. | 426 | marked any buffers, this command is equivalent to @kbd{1}. |
| 412 | @end table | 427 | @end table |
| 413 | 428 | ||
| 414 | All that @code{buffer-menu} does directly is create and switch to a | 429 | There is also a command that affects the entire buffer list: |
| 415 | suitable buffer, and turn on Buffer Menu mode. Everything else | 430 | |
| 431 | @table @kbd | ||
| 432 | @item T | ||
| 433 | Delete, or reinsert, lines for non-file buffers. This command toggles | ||
| 434 | the inclusion of such buffers in the buffer list. | ||
| 435 | @end table | ||
| 436 | |||
| 437 | What @code{buffer-menu} actually does is create and switch to a | ||
| 438 | suitable buffer, and turn on Buffer Menu mode in it. Everything else | ||
| 416 | described above is implemented by the special commands provided in | 439 | described above is implemented by the special commands provided in |
| 417 | Buffer Menu mode. One consequence of this is that you can switch from | 440 | Buffer Menu mode. One consequence of this is that you can switch from |
| 418 | the @samp{*Buffer List*} buffer to another Emacs buffer, and edit there. | 441 | the @samp{*Buffer List*} buffer to another Emacs buffer, and edit |
| 419 | You can reselect the @samp{*Buffer List*} buffer later, to perform the | 442 | there. You can reselect the @samp{*Buffer List*} buffer later, to |
| 420 | operations already requested, or you can kill it, or pay no further | 443 | perform the operations already requested, or you can kill it, or pay |
| 421 | attention to it. | 444 | no further attention to it. |
| 422 | 445 | ||
| 423 | The only difference between @code{buffer-menu} and @code{list-buffers} | 446 | The list in the @samp{*Buffer List*} buffer looks exactly like the |
| 424 | is that @code{buffer-menu} switches to the @samp{*Buffer List*} buffer | 447 | buffer list described in @ref{List Buffers}, because they really are |
| 425 | in the selected window; @code{list-buffers} displays it in another | 448 | the same. The only difference between @code{buffer-menu} and |
| 426 | window. If you run @code{list-buffers} (that is, type @kbd{C-x C-b}) | 449 | @code{list-buffers} is that @code{buffer-menu} switches to the |
| 427 | and select the buffer list manually, you can use all of the commands | 450 | @samp{*Buffer List*} buffer in the selected window; |
| 428 | described here. | 451 | @code{list-buffers} displays the same buffer in another window. If |
| 452 | you run @code{list-buffers} (that is, type @kbd{C-x C-b}) and select | ||
| 453 | the buffer list manually, you can use all of the commands described | ||
| 454 | here. | ||
| 429 | 455 | ||
| 430 | Normally, the buffer @samp{*Buffer List*} is not updated automatically when | 456 | Normally, the buffer @samp{*Buffer List*} is not updated automatically when |
| 431 | buffers are created and killed; its contents are just text. If you have | 457 | buffers are created and killed; its contents are just text. If you have |
| @@ -506,7 +532,7 @@ minibuffer. | |||
| 506 | convenient to switch between buffers. | 532 | convenient to switch between buffers. |
| 507 | 533 | ||
| 508 | @menu | 534 | @menu |
| 509 | * Uniquify:: Buffer names can contain directory parts. | 535 | * Uniquify:: Making buffer names unique with directory parts. |
| 510 | * Iswitchb:: Switching between buffers with substrings. | 536 | * Iswitchb:: Switching between buffers with substrings. |
| 511 | * Buffer Menus:: Configurable buffer menu. | 537 | * Buffer Menus:: Configurable buffer menu. |
| 512 | @end menu | 538 | @end menu |