display-buffer - interactive compiled Lisp function in `window.el '.
It is associated with Cx 4 Co.
(display-buffer buffer-or-name & optional frame of this window)
Make a buffer buffer or name in some window, but do not select it. buffer-or-name must be a buffer or the name of an existing buffer. Return the window selected to display buffer-or-name or nil, if no such window is found.
The optional argument not-this-window non-nil means that the buffer is displayed in a window other than the one selected, even if it is already displayed in the selected window.
The optional argument frame indicates which is based on whether the specified buffer is already displayed. If the buffer is already displayed in a window on one of these frames, simply return this window. Possible frame values:
`visible '- view windows on all visible frames.
0 - view windows in all visible or selected frames.
t - consider windows in all frames.
A specific frame - we will consider windows on only this frame.
nil - view the windows on the selected frame (in fact, the last frame without a minibuffer). If, however, either display-buffer-reuse-frames' or pop-up-frames' is not nil (non-nil and not just for text. Terminal), consider all visible or selected frames.