Function: consult-register-load

consult-register-load is an autoloaded, interactive and byte-compiled function defined in consult-register.el.

Signature

(consult-register-load REG &optional ARG)

Documentation

Do what I mean with a REG.

For a window configuration, restore it. For a number or text, insert it. For a location, jump to it. See jump-to-register and insert-register for the meaning of prefix ARG.

Key Bindings

Source Code

;; Defined in ~/.emacs.d/elpa/consult-20260805.1130/consult-register.el
;;;###autoload
(defun consult-register-load (reg &optional arg)
  "Do what I mean with a REG.

For a window configuration, restore it.  For a number or text, insert it.
For a location, jump to it.  See `jump-to-register' and `insert-register'
for the meaning of prefix ARG."
  (interactive
   (list
    (and (consult-register--alist)
         (register-read-with-preview "Load register: "))
    current-prefix-arg))
  (condition-case err
      (jump-to-register reg arg)
    (user-error
     (unless (string-search "access aborted" (error-message-string err))
       (insert-register reg (not arg))))))