Function: window-configuration-to-register
window-configuration-to-register is an interactive and byte-compiled
function defined in register.el.gz.
Signature
(window-configuration-to-register REGISTER)
Documentation
Store the window configuration of the selected frame in REGISTER.
Use C-x r j (jump-to-register) to restore the configuration.
Argument is a character, the name of the register.
Interactively, prompt for REGISTER using register-read-with-preview.
Probably introduced at or before Emacs version 19.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/register.el.gz
(defun window-configuration-to-register (register &optional _arg)
"Store the window configuration of the selected frame in REGISTER.
Use \\[jump-to-register] to restore the configuration.
Argument is a character, the name of the register.
Interactively, prompt for REGISTER using `register-read-with-preview'."
(interactive (list (register-read-with-preview
"Window configuration to register: ")
current-prefix-arg))
;; current-window-configuration does not include the value
;; of point in the current buffer, so record that separately.
(set-register register (list (current-window-configuration) (point-marker))))