When a window is selected, the buffer in the window becomes the current buffer, and the cursor will appear in it.
The return value is window.
(setq w (next-window)) (select-window w) => #<window 65 on windows.texi>
This macro does not save or restore anything about the sizes, arrangement or contents of windows; therefore, if the forms change them, the change persists.
Each frame, at any time, has a window selected within the frame. This macro saves only the selected window; it does not save anything about other frames. If the forms select some other frame and alter the window selected within it, the change persists.
The following functions choose one of the windows on the screen, offering various criteria for the choice.
The selected window can be the least recently used window if it is the only window. A newly created window becomes the least recently used window until it is selected. A minibuffer window is never a candidate.
The argument frame controls which windows are considered.
nil
, consider windows on the selected frame.
t
, consider windows on all frames.
visible
, consider windows on all visible frames.
If there are two windows of the same size, then the function returns the window that is first in the cyclic ordering of windows (see following section), starting from the selected window.
The argument frame controls which set of windows to
consider. See get-lru-window
, above.
Go to the first, previous, next, last section, table of contents.