Function: magit-save-window-configuration

magit-save-window-configuration is a byte-compiled function defined in magit-mode.el.

Signature

(magit-save-window-configuration)

Documentation

Save the current window configuration.

Later, when the buffer is buried, it may be restored by magit-restore-window-configuration.

Source Code

;; Defined in ~/.emacs.d/elpa/magit-20260411.1452/magit-mode.el
(defun magit-save-window-configuration ()
  "Save the current window configuration.

Later, when the buffer is buried, it may be restored by
`magit-restore-window-configuration'."
  (cond (magit-inhibit-save-previous-winconf
         (when (eq magit-inhibit-save-previous-winconf 'unset)
           (setq magit-previous-window-configuration nil)))
        ((not (get-buffer-window (current-buffer) (selected-frame)))
         (setq magit-previous-window-configuration
               (current-window-configuration)))))