* doc/emacs/regs.texi (File Registers): Document `kmacro-to-register'.
[bpt/emacs.git] / doc / emacs / regs.texi
index 77545df..bc6bcb3 100644 (file)
@@ -41,6 +41,7 @@ this chapter.
 * Configuration Registers::  Saving window configurations in registers.
 * Number Registers::         Numbers in registers.
 * File Registers::           File names in registers.
+* Keyboard Macro Registers:: Keyboard macros in registers.
 * Bookmarks::                Bookmarks are like registers, but persistent.
 @end menu
 
@@ -251,6 +252,23 @@ puts the file name shown in register @samp{z}.
 @var{r}}.  (This is the same command used to jump to a position or
 restore a frame configuration.)
 
+@node Keyboard Macro Registers
+@section Keyboard Macro Registers
+@cindex saving keyboard macro in a register
+@cindex keyboard macros, in registers
+
+@kindex C-x C-k x
+@findex kmacro-to-register
+  If you execute certain keyboard macros (@pxref{Keyboard Macros})
+frequently, you can execute them more conveniently if putting them in
+registers or save them (@pxref{Save Keyboard Macro}).  @kbd{C-x C-k x
+@var{r}} (@code{kmacro-to-register}) stores the last keyboard macro in
+register @var{r}.
+
+  To execute the keyboard macro in register @var{r}, type @kbd{C-x r j
+@var{r}}.  (This is the same command used to jump to a position or
+restore a frameset.)
+
 @node Bookmarks
 @section Bookmarks
 @cindex bookmarks