magit-mode-bury-buffer
) ¶This command buries or kills the current Magit buffer. The function
specified by option magit-bury-buffer-function
is used to bury the
buffer when called without a prefix argument or to kill it when
called with a single prefix argument.
When called with two or more prefix arguments then it always kills all Magit buffers, associated with the current project, including the current buffer.
The function used to actually bury or kill the current buffer.
magit-mode-bury-buffer
calls this function with one argument. If
the argument is non-nil, then the function has to kill the current
buffer. Otherwise it has to bury it alive. The default value
currently is magit-mode-quit-window
.
Bury or kill the current buffer using quit-window
, which is called
with KILL-BUFFER as first and the selected window as second
argument.
Then restore the window configuration that existed right before the current buffer was displayed in the selected frame. Unfortunately that also means that point gets adjusted in all the buffers, which are being displayed in the selected frame.
Bury or kill the current buffer using quit-window
, which is called
with KILL-BUFFER as first and the selected window as second
argument.
Then, if the window was originally created to display a Magit buffer and the buried buffer was the last remaining Magit buffer that was ever displayed in the window, then that is deleted.