kmacro-to-register
kmacro-to-register is an interactive compiled Lisp function in `kmacro.el'.
It is bound to C-x C-k x.
(kmacro-to-register R)
Store the last keyboard macro in register R.
Interactively, reads the register using `register-read-with-preview'.