diff options
| author | Richard M. Stallman | 2004-03-04 17:21:42 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-03-04 17:21:42 +0000 |
| commit | eddcfd0e4962c5b04b86d06b7432ecfaf0a8701e (patch) | |
| tree | b5cf78e68fd316c7fc43dcdf59ebcedeb989eeb3 | |
| parent | 09ad9db4b4ccdb7e4c327845743a758fc462054f (diff) | |
| download | emacs-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.texi | 39 |
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 | |||
| 217 | specify a name that is in use for some other buffer, an error happens and | 217 | specify a name that is in use for some other buffer, an error happens and |
| 218 | no renaming is done. | 218 | no 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 |
| 221 | with a numeric suffix added to make it both different and unique. This | 221 | name with a numeric suffix added to make it both different and unique. |
| 222 | command does not need an argument. It is useful for creating multiple | 222 | This command does not need an argument. It is useful for creating |
| 223 | shell buffers: if you rename the @samp{*Shell*} buffer, then do @kbd{M-x | 223 | multiple shell buffers: if you rename the @samp{*Shell*} buffer, then |
| 224 | shell} again, it makes a new shell buffer named @samp{*Shell*}; | 224 | do @kbd{M-x shell} again, it makes a new shell buffer named |
| 225 | meanwhile, the old shell buffer continues to exist under its new name. | 225 | @samp{*Shell*}; meanwhile, the old shell buffer continues to exist |
| 226 | This method is also good for mail buffers, compilation buffers, and most | 226 | under its new name. This method is also good for mail buffers, |
| 227 | Emacs features that create special buffers with particular names. | 227 | compilation buffers, and most Emacs features that create special |
| 228 | buffers 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 | ||
| 230 | switch to some other buffer before using the command, in order for it | ||
| 231 | to 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 |
| 472 | outline. @xref{Outline Views}. | 476 | outline. @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 |
| 477 | buffer whose base buffer is the current buffer. With a numeric | 480 | buffer whose base buffer is the current buffer. With a numeric |
| 478 | argument, it prompts for the name of the indirect buffer; otherwise it | 481 | argument, it prompts for the name of the indirect buffer; otherwise it |
| 479 | defaults to the name of the current buffer, modifying it by adding a | 482 | defaults 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 |
| 482 | clone-indirect-buffer}, but it selects the cloned buffer in another | 485 | clone-indirect-buffer}, but it selects the new buffer in another |
| 483 | window. These commands come in handy if you want to create new | 486 | window. |
| 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 |
| 487 | make-indirect-buffer}. It creates an indirect buffer from buffer | 490 | buffer @var{base-buffer}, under the name @var{indirect-name}. It |
| 488 | @var{base-buffer}, under the name @var{indirect-name}. It prompts for | 491 | prompts for both @var{base-buffer} and @var{indirect-name} using the |
| 489 | both @var{base-buffer} and @var{indirect-name} using the minibuffer. | 492 | minibuffer. |
| 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 |