Next: , Previous: , Up: キーボードマクロ   [Contents][Index]


19.6 キーボードマクロの編集

C-x C-k C-e

最後に定義されたキーボードマクロを編集します(kmacro-edit-macro)。

C-x C-k e name RET

以前に定義されたキーボードマクロnameを編集します(edit-kbd-macro)。

C-x C-k l

過去300回分のキーストロークを、キーボードマクロとして編集します(kmacro-edit-lossage)。

C-x C-k C-eまたはC-x C-k RET (kmacro-edit-macro)をとタイプして、最後のキーボードマクロを編集できます。これはマクロ定義をバッファーに整形出力して、それを編集するために特化したモードに入ります。そのバッファーでC-h mをタイプすると、マクロを編集する方法の詳細が表示されます。編集を終了するにはC-c C-cをタイプしてください。

edmacro-mode, the major mode used by kmacro-edit-macro, provides commands for more easily editing the formatted macro. Use C-c C-q (edmacro-insert-key) to insert the next key sequence that you type into the buffer using the correct format, similar to C-q (quoted-insert). Use C-c C-r (edmacro-set-macro-to-region-lines) to replace the macro’s text with the text in the region. If the region does not begin at the start of a line or if it does not end at the end of a line, the region is extended to include complete lines. If the region ends at the beginning of a line, that final line is excluded.

名前をつけたキーボードマクロ、またはキーにバインドしたマクロは、C-x C-k e (edit-kbd-macro)とタイプして編集できます。このコマンドに続けてそのマクロを呼び出すときのキー入力(C-x eM-x name、またはその他のキーシーケンス)を入力します。

You can edit the last 300 keystrokes as a macro by typing C-x C-k l (kmacro-edit-lossage). By default, your most recent keystrokes are listed at the bottom of the buffer. To list a macro’s key sequences in reverse order, set edmacro-reverse-macro-lines to t.

This page has generated for branch:master, commit:762705fb24fd90db318f2e51c1e762452d26f7e2 to check Japanese translation.