diff options
author | Chong Yidong <cyd@stupidchicken.com> | 2011-09-24 14:19:20 -0400 |
---|---|---|
committer | Chong Yidong <cyd@stupidchicken.com> | 2011-09-24 14:19:20 -0400 |
commit | 0a2132baa8e795b72d35833209132d23a1553bc2 (patch) | |
tree | de54a62be203b5bdf25a824bce36d454de778030 /doc/emacs/buffers.texi | |
parent | 25b4bfa0d11557a8041362ead77b8b1aff0f330d (diff) | |
download | emacs-0a2132baa8e795b72d35833209132d23a1553bc2.tar.gz |
Window-related updates to NEWS and Emacs manual.
* etc/NEWS: Reorganize, placing user options in Changes section.
* doc/emacs/buffers.texi (Select Buffer): Clarify description of
buffer-switching commands. Add xref to Window Display node.
Don't repeat confirm-nonexistent-file-or-buffer description from
Visiting node. Remove even-window-heights.
* doc/emacs/frames.texi (Special Buffer Frames): Add xref to Window Choice.
* doc/emacs/windows.texi (Pop Up Window): Defer discussion of window
splitting to the Window Choice node. Add index entries.
(Force Same Window): Node deleted.
(Displaying Buffers, Window Choice): New nodes.
Diffstat (limited to 'doc/emacs/buffers.texi')
-rw-r--r-- | doc/emacs/buffers.texi | 42 |
1 files changed, 12 insertions, 30 deletions
diff --git a/doc/emacs/buffers.texi b/doc/emacs/buffers.texi index c4880af2b5d..b82f3fac7d4 100644 --- a/doc/emacs/buffers.texi +++ b/doc/emacs/buffers.texi @@ -91,9 +91,9 @@ selected buffer other than the current buffer. @var{bufname} @key{RET}}. This runs the command @code{switch-to-buffer} with argument @var{bufname}. While entering the buffer name, you can use the usual minibuffer completion and -history commands (@pxref{Minibuffer}). An empty argument to @kbd{C-x -b} specifies the buffer that was current most recently among those not -now displayed in any window. +history commands (@pxref{Minibuffer}). An empty input specifies the +buffer that was current most recently among those not now displayed in +any window. @cindex minibuffer confirmation @cindex confirming in the minibuffer @@ -107,16 +107,8 @@ catches a common mistake, in which one types @key{RET} before realizing that @key{TAB} did not complete far enough to yield the desired buffer name (@pxref{Completion}). Emacs asks for confirmation by putting the message @samp{[Confirm]} in the minibuffer; type -@key{RET} again to confirm and visit the buffer. - -@vindex confirm-nonexistent-file-or-buffer - The variable @code{confirm-nonexistent-file-or-buffer} controls -whether Emacs asks for confirmation before visiting a buffer that did -not previously exist. The default value, @code{after-completion}, -gives the behavior we have just described. If the value is -@code{nil}, Emacs never asks for confirmation; for any other -non-@code{nil} value, Emacs always asks for confirmation. This -variable also affects the @code{find-file} command (@pxref{Visiting}). +@key{RET} again to confirm and visit the buffer. @xref{Visiting}, for +information about modifying this behavior. One reason to create a new buffer is to use it for making temporary notes. If you try to save it, Emacs asks for the file name to use. @@ -136,36 +128,26 @@ of most recent selection in the current frame), while @kbd{C-x @key{LEFT}} @kindex C-x 4 b @findex switch-to-buffer-other-window -@vindex even-window-heights To select a buffer in a window other than the current one, type @kbd{C-x 4 b} (@code{switch-to-buffer-other-window}). This prompts for a buffer name using the minibuffer, displays that buffer in -another window, and selects that window. By default, if displaying -the buffer causes two vertically adjacent windows to be displayed, the -heights of those windows are evened out; to countermand that and -preserve the window configuration, set the variable -@code{even-window-heights} to @code{nil}. +another window, and selects that window. @kindex C-x 5 b @findex switch-to-buffer-other-frame Similarly, @kbd{C-x 5 b} (@code{switch-to-buffer-other-frame}) prompts for a buffer name, displays that buffer in another frame, and -selects that frame. +selects that frame. If the buffer is already being shown in a window +on another frame, Emacs selects that window and frame instead of +creating a new frame. + + @xref{Displaying Buffers}, for how the @kbd{C-x 4 b} and @kbd{C-x 5 +b} commands get the window and/or frame to display in. In addition, @kbd{C-x C-f}, and any other command for visiting a file, can also be used to switch to an existing file-visiting buffer. @xref{Visiting}. -@vindex display-buffer-reuse-frames - You can control how certain buffers are handled by these commands by -customizing the variables @code{special-display-buffer-names}, -@code{special-display-regexps}, @code{same-window-buffer-names}, and -@code{same-window-regexps}. See @ref{Force Same Window}, and -@ref{Special Buffer Frames}, for more about these variables. In -addition, if the value of @code{display-buffer-reuse-frames} is -non-@code{nil}, and the buffer you want to switch to is already -displayed in some frame, Emacs will just raise that frame. - @findex goto-line @kbd{C-u M-g M-g}, that is @code{goto-line} with a plain prefix argument, reads a number @var{n} using the minibuffer, selects the |