aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2004-03-04 17:21:42 +0000
committerRichard M. Stallman2004-03-04 17:21:42 +0000
commiteddcfd0e4962c5b04b86d06b7432ecfaf0a8701e (patch)
treeb5cf78e68fd316c7fc43dcdf59ebcedeb989eeb3
parent09ad9db4b4ccdb7e4c327845743a758fc462054f (diff)
downloademacs-eddcfd0e4962c5b04b86d06b7432ecfaf0a8701e.tar.gz
emacs-eddcfd0e4962c5b04b86d06b7432ecfaf0a8701e.zip
(Misc Buffer): Explain use of M-x rename-uniquely
for multiple compile and grep buffers. (Indirect Buffers): Don't recommand clone-indirect-buffer for multiple compile and grep buffers.
-rw-r--r--man/buffers.texi39
1 files changed, 21 insertions, 18 deletions
diff --git a/man/buffers.texi b/man/buffers.texi
index b03209cd01c..7f4c4f3f39e 100644
--- a/man/buffers.texi
+++ b/man/buffers.texi
@@ -217,14 +217,18 @@ the new name as a minibuffer argument. There is no default. If you
217specify a name that is in use for some other buffer, an error happens and 217specify a name that is in use for some other buffer, an error happens and
218no renaming is done. 218no renaming is done.
219 219
220 @kbd{M-x rename-uniquely} renames the current buffer to a similar name 220 @kbd{M-x rename-uniquely} renames the current buffer to a similar
221with a numeric suffix added to make it both different and unique. This 221name with a numeric suffix added to make it both different and unique.
222command does not need an argument. It is useful for creating multiple 222This command does not need an argument. It is useful for creating
223shell buffers: if you rename the @samp{*Shell*} buffer, then do @kbd{M-x 223multiple shell buffers: if you rename the @samp{*Shell*} buffer, then
224shell} again, it makes a new shell buffer named @samp{*Shell*}; 224do @kbd{M-x shell} again, it makes a new shell buffer named
225meanwhile, the old shell buffer continues to exist under its new name. 225@samp{*Shell*}; meanwhile, the old shell buffer continues to exist
226This method is also good for mail buffers, compilation buffers, and most 226under its new name. This method is also good for mail buffers,
227Emacs features that create special buffers with particular names. 227compilation buffers, and most Emacs features that create special
228buffers with particular names. (With some of these features, such as
229@kbd{M-x compile}, @kbd{M-x grep} an @kbd{M-x info}, you need to
230switch to some other buffer before using the command, in order for it
231to make a different buffer.)
228 232
229@findex view-buffer 233@findex view-buffer
230 @kbd{M-x view-buffer} is much like @kbd{M-x view-file} (@pxref{Misc 234 @kbd{M-x view-buffer} is much like @kbd{M-x view-file} (@pxref{Misc
@@ -471,22 +475,21 @@ buffer, but killing an indirect buffer has no effect on its base buffer.
471 One way to use indirect buffers is to display multiple views of an 475 One way to use indirect buffers is to display multiple views of an
472outline. @xref{Outline Views}. 476outline. @xref{Outline Views}.
473 477
474@cindex multiple @samp{*info*} and @samp{*Help*} buffers
475 A quick and handy way to make an indirect buffer is with the command 478 A quick and handy way to make an indirect buffer is with the command
476@kbd{M-x clone-indirect-buffer}. It creates and selects an indirect 479@kbd{M-x clone-indirect-buffer}. It creates and selects an indirect
477buffer whose base buffer is the current buffer. With a numeric 480buffer whose base buffer is the current buffer. With a numeric
478argument, it prompts for the name of the indirect buffer; otherwise it 481argument, it prompts for the name of the indirect buffer; otherwise it
479defaults to the name of the current buffer, modifying it by adding a 482defaults to the name of the current buffer, modifying it by adding a
480@samp{<@var{n}>} prefix if required. @kbd{C-x 4 c} 483@samp{<@var{n}>} suffix if required. @kbd{C-x 4 c}
481(@code{clone-indirect-buffer-other-window}) works like @kbd{M-x 484(@code{clone-indirect-buffer-other-window}) works like @kbd{M-x
482clone-indirect-buffer}, but it selects the cloned buffer in another 485clone-indirect-buffer}, but it selects the new buffer in another
483window. These commands come in handy if you want to create new 486window.
484@samp{*info*} or @samp{*Help*} buffers, for example. 487
485 488 The more general way to make an indirect buffer is with the command
486 The more general way is with the command @kbd{M-x 489@kbd{M-x make-indirect-buffer}. It creates an indirect buffer from
487make-indirect-buffer}. It creates an indirect buffer from buffer 490buffer @var{base-buffer}, under the name @var{indirect-name}. It
488@var{base-buffer}, under the name @var{indirect-name}. It prompts for 491prompts for both @var{base-buffer} and @var{indirect-name} using the
489both @var{base-buffer} and @var{indirect-name} using the minibuffer. 492minibuffer.
490 493
491@node Buffer Convenience 494@node Buffer Convenience
492@section Convenience Features and Customization of Buffer Handling 495@section Convenience Features and Customization of Buffer Handling