[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/man/kmacro.texi,v
From: |
Kim F. Storm |
Subject: |
[Emacs-diffs] Changes to emacs/man/kmacro.texi,v |
Date: |
Sun, 26 Nov 2006 12:13:30 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Kim F. Storm <kfstorm> 06/11/26 12:13:30
Index: kmacro.texi
===================================================================
RCS file: /cvsroot/emacs/emacs/man/kmacro.texi,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- kmacro.texi 24 Jul 2006 17:46:34 -0000 1.18
+++ kmacro.texi 26 Nov 2006 12:13:30 -0000 1.19
@@ -46,19 +46,19 @@
@section Basic Use
@table @kbd
address@hidden C-x (
address@hidden @key{F3}
address@hidden @key{F3}
address@hidden C-x (
Start defining a keyboard macro (@code{kmacro-start-macro}).
address@hidden @key{F4}
+If a keyboard macro is being defined, end the definition; otherwise,
+execute the most recent keyboard macro
+(@code{kmacro-end-or-call-macro}).
@item C-x )
End the definition of a keyboard macro (@code{kmacro-end-macro}).
@item C-x e
Execute the most recent keyboard macro (@code{kmacro-end-and-call-macro}).
First end the definition of the keyboard macro, if currently defining it.
To immediately execute the keyboard macro again, just repeat the @kbd{e}.
address@hidden @key{F4}
-If a keyboard macro is being defined, end the definition; otherwise,
-execute the most recent keyboard macro
-(@code{kmacro-end-or-call-macro}).
@item C-u C-x (
Re-execute last keyboard macro, then add more keys to its definition.
@item C-u C-u C-x (
@@ -68,17 +68,19 @@
(@code{apply-macro-to-region-lines}).
@end table
address@hidden F3
address@hidden F4
@kindex C-x (
@kindex C-x )
@kindex C-x e
@findex kmacro-start-macro
@findex kmacro-end-macro
@findex kmacro-end-and-call-macro
- To start defining a keyboard macro, type the @kbd{C-x (} command
+ To start defining a keyboard macro, type the @kbd{F3} or @kbd{C-x (} command
(@code{kmacro-start-macro}). From then on, your keys continue to be
executed, but also become part of the definition of the macro. @samp{Def}
appears in the mode line to remind you of what is going on. When you are
-finished, the @kbd{C-x )} command (@code{kmacro-end-macro}) terminates the
+finished, the @kbd{F4} or @kbd{C-x )} command (@code{kmacro-end-macro})
terminates the
definition (without becoming part of it!). For example,
@example
@@ -115,7 +117,14 @@
The key @key{F4} is like a combination of @kbd{C-x )} and @kbd{C-x
e}. If you're defining a macro, @key{F4} ends the definition.
-Otherwise it executes the last macro.
+Otherwise it executes the last macro. For example,
+
address@hidden
+F3 xyz F4 F4 F4
address@hidden example
+
address@hidden
+inserts @samp{xyzxyzxyz} in the current buffer.
If you wish to repeat an operation at regularly spaced places in the
text, define a macro and include as part of the macro the commands to move
@@ -152,7 +161,8 @@
macro as part of the process.
After you have terminated the definition of a keyboard macro, you can add
-to the end of its definition by typing @kbd{C-u C-x (}. This is equivalent
+to the end of its definition by typing @kbd{C-u F3} or @kbd{C-u C-x (}.
+This is equivalent
to plain @kbd{C-x (} followed by retyping the whole definition so far. As
a consequence it re-executes the macro as previously defined.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] Changes to emacs/man/kmacro.texi,v,
Kim F. Storm <=