aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim F. Storm2006-11-26 12:13:30 +0000
committerKim F. Storm2006-11-26 12:13:30 +0000
commit947ebc5fc5119d075eccd50a9868d6fa2d0d6893 (patch)
treeea48cd8890a2d7d265ada7755921cb0c35bc1266
parent2409ce7fbe46b28c632574f98160c40a8c9689f5 (diff)
downloademacs-947ebc5fc5119d075eccd50a9868d6fa2d0d6893.tar.gz
emacs-947ebc5fc5119d075eccd50a9868d6fa2d0d6893.zip
(Basic Keyboard Macro): Mention F3/F4 more.
-rw-r--r--man/kmacro.texi30
1 files changed, 20 insertions, 10 deletions
diff --git a/man/kmacro.texi b/man/kmacro.texi
index 66b8c2d4588..6596adf4268 100644
--- a/man/kmacro.texi
+++ b/man/kmacro.texi
@@ -46,19 +46,19 @@ intelligent or general. For such things, Lisp must be used.
46@section Basic Use 46@section Basic Use
47 47
48@table @kbd 48@table @kbd
49@item C-x ( 49@item @key{F3}
50@itemx @key{F3} 50@itemx C-x (
51Start defining a keyboard macro (@code{kmacro-start-macro}). 51Start defining a keyboard macro (@code{kmacro-start-macro}).
52@item @key{F4}
53If a keyboard macro is being defined, end the definition; otherwise,
54execute the most recent keyboard macro
55(@code{kmacro-end-or-call-macro}).
52@item C-x ) 56@item C-x )
53End the definition of a keyboard macro (@code{kmacro-end-macro}). 57End the definition of a keyboard macro (@code{kmacro-end-macro}).
54@item C-x e 58@item C-x e
55Execute the most recent keyboard macro (@code{kmacro-end-and-call-macro}). 59Execute the most recent keyboard macro (@code{kmacro-end-and-call-macro}).
56First end the definition of the keyboard macro, if currently defining it. 60First end the definition of the keyboard macro, if currently defining it.
57To immediately execute the keyboard macro again, just repeat the @kbd{e}. 61To immediately execute the keyboard macro again, just repeat the @kbd{e}.
58@item @key{F4}
59If a keyboard macro is being defined, end the definition; otherwise,
60execute the most recent keyboard macro
61(@code{kmacro-end-or-call-macro}).
62@item C-u C-x ( 62@item C-u C-x (
63Re-execute last keyboard macro, then add more keys to its definition. 63Re-execute last keyboard macro, then add more keys to its definition.
64@item C-u C-u C-x ( 64@item C-u C-u C-x (
@@ -68,17 +68,19 @@ Run the last keyboard macro on each line that begins in the region
68(@code{apply-macro-to-region-lines}). 68(@code{apply-macro-to-region-lines}).
69@end table 69@end table
70 70
71@kindex F3
72@kindex F4
71@kindex C-x ( 73@kindex C-x (
72@kindex C-x ) 74@kindex C-x )
73@kindex C-x e 75@kindex C-x e
74@findex kmacro-start-macro 76@findex kmacro-start-macro
75@findex kmacro-end-macro 77@findex kmacro-end-macro
76@findex kmacro-end-and-call-macro 78@findex kmacro-end-and-call-macro
77 To start defining a keyboard macro, type the @kbd{C-x (} command 79 To start defining a keyboard macro, type the @kbd{F3} or @kbd{C-x (} command
78(@code{kmacro-start-macro}). From then on, your keys continue to be 80(@code{kmacro-start-macro}). From then on, your keys continue to be
79executed, but also become part of the definition of the macro. @samp{Def} 81executed, but also become part of the definition of the macro. @samp{Def}
80appears in the mode line to remind you of what is going on. When you are 82appears in the mode line to remind you of what is going on. When you are
81finished, the @kbd{C-x )} command (@code{kmacro-end-macro}) terminates the 83finished, the @kbd{F4} or @kbd{C-x )} command (@code{kmacro-end-macro}) terminates the
82definition (without becoming part of it!). For example, 84definition (without becoming part of it!). For example,
83 85
84@example 86@example
@@ -115,7 +117,14 @@ MS-DOS, @kbd{C-@key{BREAK}}).
115 117
116 The key @key{F4} is like a combination of @kbd{C-x )} and @kbd{C-x 118 The key @key{F4} is like a combination of @kbd{C-x )} and @kbd{C-x
117e}. If you're defining a macro, @key{F4} ends the definition. 119e}. If you're defining a macro, @key{F4} ends the definition.
118Otherwise it executes the last macro. 120Otherwise it executes the last macro. For example,
121
122@example
123F3 xyz F4 F4 F4
124@end example
125
126@noindent
127inserts @samp{xyzxyzxyz} in the current buffer.
119 128
120 If you wish to repeat an operation at regularly spaced places in the 129 If you wish to repeat an operation at regularly spaced places in the
121text, define a macro and include as part of the macro the commands to move 130text, define a macro and include as part of the macro the commands to move
@@ -152,7 +161,8 @@ you invoked the keyboard macro, it also necessarily exits the keyboard
152macro as part of the process. 161macro as part of the process.
153 162
154 After you have terminated the definition of a keyboard macro, you can add 163 After you have terminated the definition of a keyboard macro, you can add
155to the end of its definition by typing @kbd{C-u C-x (}. This is equivalent 164to the end of its definition by typing @kbd{C-u F3} or @kbd{C-u C-x (}.
165This is equivalent
156to plain @kbd{C-x (} followed by retyping the whole definition so far. As 166to plain @kbd{C-x (} followed by retyping the whole definition so far. As
157a consequence it re-executes the macro as previously defined. 167a consequence it re-executes the macro as previously defined.
158 168