with-displayed-buffer-window
with-displayed-buffer-window is a Lisp macro in `window.el
'.
(with-displayed-buffer-window BUFFER-OR-NAME ACTION QUIT-FUNCTION &rest BODY)
Show a buffer BUFFER-OR-NAME and evaluate BODY in that buffer.
This construct is like `with-current-buffer-window' but unlike that
displays the buffer specified by BUFFER-OR-NAME before running BODY.