display-buffer--maybe-pop-up-frame-or-window
display-buffer--maybe-pop-up-frame-or-window is a compiled Lisp function in `window.el
'.
(display-buffer--maybe-pop-up-frame-or-window BUFFER ALIST)
Try displaying BUFFER based on `pop-up-frames' or `pop-up-windows'.
If `pop-up-frames' is non-nil (and not `graphic-only' on a
text-only terminal), try with `display-buffer-pop-up-frame'.
If that cannot be done, and `pop-up-windows' is non-nil, try
again with `display-buffer-pop-up-window'.