Function: magit-log-bury-buffer
magit-log-bury-buffer is an interactive and byte-compiled function
defined in magit-log.el.
Signature
(magit-log-bury-buffer &optional ARG)
Documentation
Bury the current buffer or the revision buffer in the same frame.
Like magit-mode-bury-buffer (which see) but with a negative
prefix argument instead bury the revision buffer, provided it
is displayed in the current frame.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-log.el
;;;; Mode Commands
(defun magit-log-bury-buffer (&optional arg)
"Bury the current buffer or the revision buffer in the same frame.
Like `magit-mode-bury-buffer' (which see) but with a negative
prefix argument instead bury the revision buffer, provided it
is displayed in the current frame."
(interactive "p")
(cond-let*
((>= arg 0)
(magit-mode-bury-buffer (> arg 1)))
([buf (magit-get-mode-buffer 'magit-revision-mode)]
[win (get-buffer-window buf (selected-frame))]
(with-selected-window win
(with-current-buffer buf
(magit-mode-bury-buffer (> (abs arg) 1)))))
((user-error "No revision buffer in this frame"))))