Function: magit-maybe-set-dedicated
magit-maybe-set-dedicated is a byte-compiled function defined in
magit-mode.el.
Signature
(magit-maybe-set-dedicated)
Documentation
Mark the selected window as dedicated if appropriate.
If a new window was created to display the buffer, then remember
that fact. That information is used by magit-mode-quit-window,
to determine whether the window should be deleted when its last
Magit buffer is buried.
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-mode.el
(defun magit-maybe-set-dedicated ()
"Mark the selected window as dedicated if appropriate.
If a new window was created to display the buffer, then remember
that fact. That information is used by `magit-mode-quit-window',
to determine whether the window should be deleted when its last
Magit buffer is buried."
(let ((window (get-buffer-window (current-buffer))))
(when (and (window-live-p window)
(not (window-prev-buffers window)))
(set-window-parameter window 'magit-dedicated t))))