diff options
| author | Richard M. Stallman | 2001-08-12 21:22:26 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2001-08-12 21:22:26 +0000 |
| commit | d6f207b78d970d968bd5505873cf197161a26d25 (patch) | |
| tree | 014f1020957a34197d24bd8df7945943e9908216 | |
| parent | ea626e87bb7f3c6969e25ae5236e4ab28bf30c8c (diff) | |
| download | emacs-d6f207b78d970d968bd5505873cf197161a26d25.tar.gz emacs-d6f207b78d970d968bd5505873cf197161a26d25.zip | |
Show a keyboard macro with minibuffer arguments in it.
| -rw-r--r-- | man/custom.texi | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/man/custom.texi b/man/custom.texi index 617bf6c6538..b64413548a8 100644 --- a/man/custom.texi +++ b/man/custom.texi | |||
| @@ -1116,10 +1116,18 @@ each line, you should position point at the start of a line, and define a | |||
| 1116 | macro to change that line and leave point at the start of the next line. | 1116 | macro to change that line and leave point at the start of the next line. |
| 1117 | Then repeating the macro will operate on successive lines. | 1117 | Then repeating the macro will operate on successive lines. |
| 1118 | 1118 | ||
| 1119 | After you have terminated the definition of a keyboard macro, you can add | 1119 | When a command reads an argument with the minibuffer, your |
| 1120 | to the end of its definition by typing @kbd{C-u C-x (}. This is equivalent | 1120 | minibuffer input becomes part of the macro along with the command. So |
| 1121 | to plain @kbd{C-x (} followed by retyping the whole definition so far. As | 1121 | when you replay the macro, the command gets the same argument as |
| 1122 | a consequence it re-executes the macro as previously defined. | 1122 | when you entered the macro. For example, |
| 1123 | |||
| 1124 | @example | ||
| 1125 | C-x ( C-a C-@key{SPC} C-n M-w C-x b f o o @key{RET} C-y C-x b @key{RET} C-x ) | ||
| 1126 | @end example | ||
| 1127 | |||
| 1128 | @noindent | ||
| 1129 | defines a macro that copies the current line into the buffer | ||
| 1130 | @samp{foo}, then returns to the original buffer. | ||
| 1123 | 1131 | ||
| 1124 | You can use function keys in a keyboard macro, just like keyboard | 1132 | You can use function keys in a keyboard macro, just like keyboard |
| 1125 | keys. You can even use mouse events, but be careful about that: when | 1133 | keys. You can even use mouse events, but be careful about that: when |
| @@ -1135,6 +1143,11 @@ expect. But if it exits a recursive edit that started before you | |||
| 1135 | invoked the keyboard macro, it also necessarily exits the keyboard macro | 1143 | invoked the keyboard macro, it also necessarily exits the keyboard macro |
| 1136 | as part of the process. | 1144 | as part of the process. |
| 1137 | 1145 | ||
| 1146 | After you have terminated the definition of a keyboard macro, you can add | ||
| 1147 | to the end of its definition by typing @kbd{C-u C-x (}. This is equivalent | ||
| 1148 | to plain @kbd{C-x (} followed by retyping the whole definition so far. As | ||
| 1149 | a consequence it re-executes the macro as previously defined. | ||
| 1150 | |||
| 1138 | @findex edit-kbd-macro | 1151 | @findex edit-kbd-macro |
| 1139 | @kindex C-x C-k | 1152 | @kindex C-x C-k |
| 1140 | You can edit a keyboard macro already defined by typing @kbd{C-x C-k} | 1153 | You can edit a keyboard macro already defined by typing @kbd{C-x C-k} |