165 |
a consequence it re-executes the macro as previously defined. |
a consequence it re-executes the macro as previously defined. |
166 |
|
|
167 |
You can also add to the end of the definition of the last keyboard |
You can also add to the end of the definition of the last keyboard |
168 |
macro without re-execuing it by typing @kbd{C-u C-u C-x (}. |
macro without re-executing it by typing @kbd{C-u C-u C-x (}. |
169 |
|
|
170 |
The variable @code{kmacro-execute-before-append} specifies whether |
The variable @code{kmacro-execute-before-append} specifies whether |
171 |
a single @kbd{C-u} prefix causes the existing macro to be re-executed |
a single @kbd{C-u} prefix causes the existing macro to be re-executed |
218 |
in the echo area. You can continue to rotate the macro ring |
in the echo area. You can continue to rotate the macro ring |
219 |
immediately by repeating just @kbd{C-n} and @kbd{C-p} until the |
immediately by repeating just @kbd{C-n} and @kbd{C-p} until the |
220 |
desired macro is at the head of the ring. To execute the new macro |
desired macro is at the head of the ring. To execute the new macro |
221 |
ring head immediately, just type @kbd{C-k}. |
ring head immediately, just type @kbd{C-k}. |
222 |
|
|
223 |
@findex kmacro-view-macro-repeat |
@findex kmacro-view-macro-repeat |
224 |
@kindex C-x C-k C-v |
@kindex C-x C-k C-v |
361 |
@findex name-last-kbd-macro |
@findex name-last-kbd-macro |
362 |
@kindex C-x C-k n |
@kindex C-x C-k n |
363 |
If you wish to save a keyboard macro for later use, you can give it |
If you wish to save a keyboard macro for later use, you can give it |
364 |
a name using @kbd{C-x C-k n} (@code{name-last-kbd-macro}). |
a name using @kbd{C-x C-k n} (@code{name-last-kbd-macro}). |
365 |
This reads a name as an argument using the minibuffer and defines that name |
This reads a name as an argument using the minibuffer and defines that name |
366 |
to execute the macro. The macro name is a Lisp symbol, and defining it in |
to execute the macro. The macro name is a Lisp symbol, and defining it in |
367 |
this way makes it a valid command name for calling with @kbd{M-x} or for |
this way makes it a valid command name for calling with @kbd{M-x} or for |
377 |
key sequence you want the keyboard macro to be bound to. You can |
key sequence you want the keyboard macro to be bound to. You can |
378 |
bind to any key sequence in the global keymap, but since most key |
bind to any key sequence in the global keymap, but since most key |
379 |
sequences already have other bindings, you should select the key |
sequences already have other bindings, you should select the key |
380 |
sequence carefylly. If you try to bind to a key sequence with an |
sequence carefully. If you try to bind to a key sequence with an |
381 |
existing binding (in any keymap), you will be asked if you really |
existing binding (in any keymap), you will be asked if you really |
382 |
want to replace the existing binding of that key. |
want to replace the existing binding of that key. |
383 |
|
|
448 |
@findex kmacro-step-edit-macro |
@findex kmacro-step-edit-macro |
449 |
@kindex C-x C-k SPC |
@kindex C-x C-k SPC |
450 |
You can interactively and stepwise replay and edit the last keyboard |
You can interactively and stepwise replay and edit the last keyboard |
451 |
macro one command at a time by typing @kbd{C-x C-k SPC} |
macro one command at a time by typing @kbd{C-x C-k SPC} |
452 |
(@code{kmacro-step-edit-macro}). Unless you quit the macro using |
(@code{kmacro-step-edit-macro}). Unless you quit the macro using |
453 |
@kbd{q} or @kbd{C-g}, the edited macro replaces the last macro on the |
@kbd{q} or @kbd{C-g}, the edited macro replaces the last macro on the |
454 |
macro ring. |
macro ring. |