This section describes low-level functions to examine windows or to display buffers in windows in a precisely controlled fashion. See the following section for related functions that find a window to use and specify a buffer for it. The functions described there are easier to use than these, but they employ heuristics in choosing or creating a window; use these functions when you need complete control.
nil
. This is the fundamental primitive
for changing which buffer is displayed in a window, and all ways
of doing that call this function.
(set-window-buffer (selected-window) "foo") => nil
(window-buffer) => #<buffer windows.texi>
nil
if there is none. If there are
several such windows, then the function returns the first one in the
cyclic ordering of windows, starting from the selected window.
See section Cyclic Ordering of Windows.
The argument all-frames controls which windows to consider.
nil
, consider windows on the selected frame.
t
, consider windows on all frames.
visible
, consider windows on all visible frames.
The two optional arguments work like the optional arguments of
next-window
(see section Cyclic Ordering of Windows); they are not
like the single optional argument of get-buffer-window
. Perhaps
we should change get-buffer-window
in the future to make it
compatible with the other functions.
The argument all-frames controls which windows to consider.
nil
, consider windows on the selected frame.
t
, consider windows on all frames.
visible
, consider windows on all visible frames.
set-window-buffer
is called, it sets this variable to
(current-time)
in the specified buffer (see section Time of Day).
When a buffer is first created, buffer-display-time
starts out
with the value nil
.
Go to the first, previous, next, last section, table of contents.