1 |
@c This is part of the Emacs manual. |
@c This is part of the Emacs manual. |
2 |
@c Copyright (C) 1985,86,87,93,94,95,97,2000,2001 Free Software Foundation, Inc. |
@c Copyright (C) 1985,86,87,93,94,95,97,2000,2001,2004 Free Software Foundation, Inc. |
3 |
@c See file emacs.texi for copying conditions. |
@c See file emacs.texi for copying conditions. |
4 |
@node Windows, Frames, Buffers, Top |
@node Windows, Frames, Buffers, Top |
5 |
@chapter Multiple Windows |
@chapter Multiple Windows |
36 |
At any time, one of the windows is the @dfn{selected window}; the |
At any time, one of the windows is the @dfn{selected window}; the |
37 |
buffer this window is displaying is the current buffer. The terminal's |
buffer this window is displaying is the current buffer. The terminal's |
38 |
cursor shows the location of point in this window. Each other window |
cursor shows the location of point in this window. Each other window |
39 |
has a location of point as well, but since the terminal has only one |
has a location of point as well. On text-only terminals, there is no |
40 |
cursor there is no way to show where those locations are. When multiple |
way to show where those locations are, since the terminal has only one |
41 |
frames are visible in X, each frame has a cursor which appears in the |
cursor. If you are using a window system, the location of point in a |
42 |
frame's selected window. The cursor in the selected frame is solid; the |
non-selected window is indicated by a hollow box. The cursor in the |
43 |
cursor in other frames is a hollow box. |
selected window is blinking or solid. |
44 |
|
|
45 |
Commands to move point affect the value of point for the selected Emacs |
Commands to move point affect the value of point for the selected Emacs |
46 |
window only. They do not change the value of point in any other Emacs |
window only. They do not change the value of point in any other Emacs |
93 |
@findex split-window-horizontally |
@findex split-window-horizontally |
94 |
@kbd{C-x 3} (@code{split-window-horizontally}) breaks the selected |
@kbd{C-x 3} (@code{split-window-horizontally}) breaks the selected |
95 |
window into two side-by-side windows. A numeric argument specifies how |
window into two side-by-side windows. A numeric argument specifies how |
96 |
many columns to give the one on the left. A line of vertical bars |
many columns to give the one on the left. If you are not using |
97 |
separates the two windows. Windows that are not the full width of the |
scrollbars, a line of vertical bars separates the two windows. |
98 |
screen have mode lines, but they are truncated. On terminals where |
Windows that are not the full width of the screen have mode lines, but |
99 |
Emacs does not support highlighting, truncated mode lines sometimes do |
they are truncated. On terminals where Emacs does not support |
100 |
not appear in inverse video. |
highlighting, truncated mode lines sometimes do not appear in inverse |
101 |
|
video. |
102 |
|
|
103 |
@kindex C-Mouse-2 @r{(scroll bar)} |
@kindex C-Mouse-2 @r{(scroll bar)} |
104 |
You can split a window horizontally or vertically by clicking |
You can split a window horizontally or vertically by clicking |
105 |
@kbd{C-Mouse-2} in the mode line or the scroll bar. (This does not |
@kbd{C-Mouse-2} in the mode line or the scroll bar. The line of |
106 |
work in scroll bars implemented by X toolkits.) The line of splitting |
splitting goes through the place where you click: if you click on the |
107 |
goes through the place where you click: if you click on the mode line, |
mode line, the new scroll bar goes above the spot; if you click in the |
108 |
the new scroll bar goes above the spot; if you click in the scroll |
scroll bar, the mode line of the split window is side by side with |
109 |
bar, the mode line of the split window is side by side with your |
your click. |
|
click. |
|
110 |
|
|
111 |
@vindex truncate-partial-width-windows |
@vindex truncate-partial-width-windows |
112 |
When a window is less than the full width, text lines too long to fit are |
When a window is less than the full width, text lines too long to fit are |
319 |
except for the echo area. |
except for the echo area. |
320 |
|
|
321 |
You can also delete a window by clicking on its mode line with |
You can also delete a window by clicking on its mode line with |
322 |
@kbd{Mouse-2}, and delete all the windows in a frame except one window |
@kbd{Mouse-3}, and delete all the windows in a frame except one window |
323 |
by clicking on that window's mode line with @kbd{Mouse-3}. |
by clicking on that window's mode line with @kbd{Mouse-2}. |
324 |
|
|
325 |
The easiest way to adjust window heights is with a mouse. If you |
The easiest way to adjust window heights is with a mouse. If you |
326 |
press @kbd{Mouse-1} on a mode line, you can drag that mode line up or |
press @kbd{Mouse-1} on a mode line, you can drag that mode line up or |
370 |
@kbd{M-x winner-mode} is a global minor mode that records the |
@kbd{M-x winner-mode} is a global minor mode that records the |
371 |
changes in the window configuration (i.e. how the frames are |
changes in the window configuration (i.e. how the frames are |
372 |
partitioned into windows), so that you can ``undo'' them. To undo, |
partitioned into windows), so that you can ``undo'' them. To undo, |
373 |
use @kbd{C-x left} (@code{winner-undo}). If you change your mind |
use @kbd{C-c left} (@code{winner-undo}). If you change your mind |
374 |
while undoing, you can redo the changes you had undone using @kbd{C-x |
while undoing, you can redo the changes you had undone using @kbd{C-c |
375 |
right} (@code{M-x winner-redo}). Another way to enable Winner mode is |
right} (@code{M-x winner-redo}). Another way to enable Winner mode is |
376 |
by customizing the variable @code{winner-mode}. |
by customizing the variable @code{winner-mode}. |
377 |
|
|