aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2005-02-03 07:22:46 +0000
committerRichard M. Stallman2005-02-03 07:22:46 +0000
commit7354ca011daefc7a0a7e7e7ce51c8453f33e69d3 (patch)
tree9d01f0b36d821d90b7fe9c656d4d39dbe9b813e2
parent7f9c94b0881d5089d66d1706cfec60f97745c3c2 (diff)
downloademacs-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.texi66
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}
69Select or create a buffer named @var{buffer} (@code{switch-to-buffer}). 69Select or create a buffer named @var{buffer} (@code{switch-to-buffer}).
70@item C-x @key{LEFT}
71Select the previous buffer in the list of existing buffers.
72@item C-x @key{RIGHT}
73Select 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}
71Similar, but select @var{buffer} in another window 75Similar, 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}
84specifies the buffer that was current most recently among those not 88specifies the buffer that was current most recently among those not
85now displayed in any window. 89now 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
98of 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
145Each line in the list shows one buffer's name, major mode and visited 159line in the list shows one buffer's name, major mode and visited file.
146file. The buffers are listed in the order that they were current; the 160The buffers are listed in the order that they were current; the
147buffers that were current most recently come first. 161buffers 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
171visiting files by giving the command a prefix; for instance, by typing 185visiting 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,
175unless they visit files: such buffers are used internally by Emacs. 189unless 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.
332buffers@footnote{Buffers which don't visit files and whose names begin 346buffers@footnote{Buffers which don't visit files and whose names begin
333with a space are omitted: these are used internally by Emacs.} into the 347with a space are omitted: these are used internally by Emacs.} into the
334buffer @samp{*Buffer List*}, and selects that buffer in Buffer Menu 348buffer @samp{*Buffer List*}, and selects that buffer in Buffer Menu
335mode. The list in the @samp{*Buffer List*} buffer looks exactly as 349mode.
336described in @ref{List Buffers}. The buffer is read-only, and can be 350
351 The buffer is read-only, and can be
337changed only through the special commands described in this section. 352changed only through the special commands described in this section.
338The usual Emacs cursor motion commands can be used in the @samp{*Buffer 353The usual Emacs cursor motion commands can be used in the @samp{*Buffer
339List*} buffer. The following commands apply to the buffer described on 354List*} 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
411marked any buffers, this command is equivalent to @kbd{1}. 426marked 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:
415suitable buffer, and turn on Buffer Menu mode. Everything else 430
431@table @kbd
432@item T
433Delete, or reinsert, lines for non-file buffers. This command toggles
434the 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
438suitable buffer, and turn on Buffer Menu mode in it. Everything else
416described above is implemented by the special commands provided in 439described above is implemented by the special commands provided in
417Buffer Menu mode. One consequence of this is that you can switch from 440Buffer Menu mode. One consequence of this is that you can switch from
418the @samp{*Buffer List*} buffer to another Emacs buffer, and edit there. 441the @samp{*Buffer List*} buffer to another Emacs buffer, and edit
419You can reselect the @samp{*Buffer List*} buffer later, to perform the 442there. You can reselect the @samp{*Buffer List*} buffer later, to
420operations already requested, or you can kill it, or pay no further 443perform the operations already requested, or you can kill it, or pay
421attention to it. 444no 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
424is that @code{buffer-menu} switches to the @samp{*Buffer List*} buffer 447buffer list described in @ref{List Buffers}, because they really are
425in the selected window; @code{list-buffers} displays it in another 448the same. The only difference between @code{buffer-menu} and
426window. 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
427and select the buffer list manually, you can use all of the commands 450@samp{*Buffer List*} buffer in the selected window;
428described here. 451@code{list-buffers} displays the same buffer in another window. If
452you run @code{list-buffers} (that is, type @kbd{C-x C-b}) and select
453the buffer list manually, you can use all of the commands described
454here.
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
431buffers are created and killed; its contents are just text. If you have 457buffers are created and killed; its contents are just text. If you have
@@ -506,7 +532,7 @@ minibuffer.
506convenient to switch between buffers. 532convenient 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