X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/84eb0351d8be4811897c8cf62a69757ff5d14001..a7fecaa0c5f8247c3b3747506201ec2a2ecbe292:/doc/emacs/kmacro.texi diff --git a/doc/emacs/kmacro.texi b/doc/emacs/kmacro.texi index c52381a663..bc62faf769 100644 --- a/doc/emacs/kmacro.texi +++ b/doc/emacs/kmacro.texi @@ -1,8 +1,8 @@ @c This is part of the Emacs manual. -@c Copyright (C) 1985-1987, 1993-1995, 1997, 2000-2011 -@c Free Software Foundation, Inc. +@c Copyright (C) 1985-1987, 1993-1995, 1997, 2000-2014 Free Software +@c Foundation, Inc. @c See file emacs.texi for copying conditions. -@node Keyboard Macros, Files, Fixit, Top +@node Keyboard Macros @chapter Keyboard Macros @cindex defining keyboard macros @cindex keyboard macro @@ -35,8 +35,10 @@ intelligent or general. For such things, Lisp must be used. * Basic Keyboard Macro:: Defining and running keyboard macros. * Keyboard Macro Ring:: Where previous keyboard macros are saved. * Keyboard Macro Counter:: Inserting incrementing numbers in macros. -* Keyboard Macro Query:: Making keyboard macros do different things each time. -* Save Keyboard Macro:: Giving keyboard macros names; saving them in files. +* Keyboard Macro Query:: Making keyboard macros do different things each + time. +* Save Keyboard Macro:: Giving keyboard macros names; saving them in + files. * Edit Keyboard Macro:: Editing keyboard macros. * Keyboard Macro Step-Edit:: Interactively executing and editing a keyboard macro. @@ -147,7 +149,7 @@ beginning of the line and then executing the macro. @findex kmacro-start-macro @findex kmacro-end-macro In addition to the @key{F3} and @key{F4} commands described above, -Emacs also supports an older set of keybindings for defining and +Emacs also supports an older set of key bindings for defining and executing keyboard macros. To begin a macro definition, type @kbd{C-x (} (@code{kmacro-start-macro}); as with @key{F3}, a prefix argument appends this definition to the last keyboard macro. To end a macro @@ -223,7 +225,7 @@ desired macro is at the head of the ring. To execute the new macro ring head immediately, just type @kbd{C-k}. Note that Emacs treats the head of the macro ring as the ``last -defined keyboard macro.'' For instance, @key{F4} will execute that +defined keyboard macro''. For instance, @key{F4} will execute that macro, and @kbd{C-x C-k n} will give it a name. @vindex kmacro-ring-max @@ -332,8 +334,8 @@ numbers stored in registers. If you use a register as a counter, incrementing it on each repetition of the macro, that accomplishes the same thing as a -keyboard macro counter. @xref{RegNumbers}. For most purposes, it is -simpler to use a keyboard macro counter. +keyboard macro counter. @xref{Number Registers}. For most purposes, +it is simpler to use a keyboard macro counter. @node Keyboard Macro Query @section Executing Macros with Variations @@ -480,10 +482,11 @@ Edit the last 300 keystrokes as a keyboard macro @kindex C-x C-k C-e @kindex C-x C-k RET You can edit the last keyboard macro by typing @kbd{C-x C-k C-e} or -@kbd{C-x C-k RET} (@code{kmacro-edit-macro}). This formats the macro -definition in a buffer and enters a specialized major mode for editing -it. Type @kbd{C-h m} once in that buffer to display details of how to -edit the macro. When you are finished editing, type @kbd{C-c C-c}. +@kbd{C-x C-k @key{RET}} (@code{kmacro-edit-macro}). This formats the +macro definition in a buffer and enters a specialized major mode for +editing it. Type @kbd{C-h m} once in that buffer to display details +of how to edit the macro. When you are finished editing, type +@kbd{C-c C-c}. @findex edit-kbd-macro @kindex C-x C-k e