Function: kmacro-to-register

kmacro-to-register is an interactive and byte-compiled function defined in kmacro.el.gz.

Signature

(kmacro-to-register R)

Documentation

Store the last keyboard macro in register R.

Interactively, reads the register using register-read-with-preview.

View in manual

Probably introduced at or before Emacs version 24.4.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/kmacro.el.gz
(defun kmacro-to-register (r)
  "Store the last keyboard macro in register R.

Interactively, reads the register using `register-read-with-preview'."
  (interactive
   (progn
     (or last-kbd-macro (error "No keyboard macro defined"))
     (list (register-read-with-preview "Save to register: "))))
  (set-register r (kmacro-ring-head)))