Function: magit-display-buffer-same-window-except-diff-v1
magit-display-buffer-same-window-except-diff-v1 is a byte-compiled
function defined in magit-mode.el.
Signature
(magit-display-buffer-same-window-except-diff-v1 BUFFER)
Documentation
Display BUFFER in the selected window except for some modes.
If a buffer's major-mode derives from magit-diff-mode or
magit-process-mode, display it in another window. Display all
other buffers in the selected window.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-mode.el
nil))) ; display in another window
(defun magit-display-buffer-same-window-except-diff-v1 (buffer)
"Display BUFFER in the selected window except for some modes.
If a buffer's `major-mode' derives from `magit-diff-mode' or
`magit-process-mode', display it in another window. Display all
other buffers in the selected window."
(display-buffer
buffer (if (with-current-buffer buffer
(derived-mode-p 'magit-diff-mode 'magit-process-mode))
'(nil (inhibit-same-window . t))
'(display-buffer-same-window))))