Function: display-buffer--maybe-same-window
display-buffer--maybe-same-window is a byte-compiled function defined
in window.el.gz.
Signature
(display-buffer--maybe-same-window BUFFER ALIST)
Documentation
Conditionally display BUFFER in the selected window.
ALIST is an association list of action symbols and values. See Info node (elisp) Buffer Display Action Alists for details of such alists.
If same-window-p returns non-nil for BUFFER's name, call
display-buffer-same-window and return its value. Otherwise,
return nil.
Source Code
;; Defined in /usr/src/emacs/lisp/window.el.gz
(defun display-buffer--maybe-same-window (buffer alist)
"Conditionally display BUFFER in the selected window.
ALIST is an association list of action symbols and values. See
Info node `(elisp) Buffer Display Action Alists' for details of
such alists.
If `same-window-p' returns non-nil for BUFFER's name, call
`display-buffer-same-window' and return its value. Otherwise,
return nil."
(and (same-window-p (buffer-name buffer))
(display-buffer-same-window buffer alist)))