diff options
| author | Luc Teirlinck | 2004-08-22 02:25:16 +0000 |
|---|---|---|
| committer | Luc Teirlinck | 2004-08-22 02:25:16 +0000 |
| commit | 2935e78878ef7868882c2dd3fe54fa61d4643122 (patch) | |
| tree | 75753438c8e0f47e768075b763a9e9afaf2beeaf | |
| parent | aca16f78753587b4dc2904ac2d319b7496fdc4b9 (diff) | |
| download | emacs-2935e78878ef7868882c2dd3fe54fa61d4643122.tar.gz emacs-2935e78878ef7868882c2dd3fe54fa61d4643122.zip | |
(Keyboard Macro Ring): Rename section.
Emacs treats the head of the macro ring as the `last keyboard macro'.
(Keyboard Macro Counter): Minor change.
(Save Keyboard Macro): Some clarifications.
(Edit Keyboard Macro): Rename section.
| -rw-r--r-- | man/ChangeLog | 6 | ||||
| -rw-r--r-- | man/kmacro.texi | 38 |
2 files changed, 28 insertions, 16 deletions
diff --git a/man/ChangeLog b/man/ChangeLog index eead2deac38..e40f2317d2a 100644 --- a/man/ChangeLog +++ b/man/ChangeLog | |||
| @@ -1,5 +1,11 @@ | |||
| 1 | 2004-08-21 Luc Teirlinck <teirllm@auburn.edu> | 1 | 2004-08-21 Luc Teirlinck <teirllm@auburn.edu> |
| 2 | 2 | ||
| 3 | * kmacro.texi (Keyboard Macro Ring): Rename section. | ||
| 4 | Emacs treats the head of the macro ring as the `last keyboard macro'. | ||
| 5 | (Keyboard Macro Counter): Minor change. | ||
| 6 | (Save Keyboard Macro): Some clarifications. | ||
| 7 | (Edit Keyboard Macro): Rename section. | ||
| 8 | |||
| 3 | * buffers.texi (Buffers): Maximum buffer size is now 256M on | 9 | * buffers.texi (Buffers): Maximum buffer size is now 256M on |
| 4 | 32-bit machines. | 10 | 32-bit machines. |
| 5 | (Several Buffers): Clarify which buffer is selected if `2' is | 11 | (Several Buffers): Clarify which buffer is selected if `2' is |
diff --git a/man/kmacro.texi b/man/kmacro.texi index 8965c4f2167..a0b3a249bbd 100644 --- a/man/kmacro.texi +++ b/man/kmacro.texi | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | @c This is part of the Emacs manual. | 1 | @c This is part of the Emacs manual. |
| 2 | @c Copyright (C) 1985,86,87,93,94,95,97,2000,2001,2002,2003 | 2 | @c Copyright (C) 1985,86,87,93,94,95,97,2000,2001,2002,2003,2004 |
| 3 | @c Free Software Foundation, Inc. | 3 | @c Free Software Foundation, Inc. |
| 4 | @c See file emacs.texi for copying conditions. | 4 | @c See file emacs.texi for copying conditions. |
| 5 | @node Keyboard Macros, Files, Fixit, Top | 5 | @node Keyboard Macros, Files, Fixit, Top |
| @@ -179,7 +179,7 @@ the current region. It does this line by line, by moving point to the | |||
| 179 | beginning of the line and then executing the macro. | 179 | beginning of the line and then executing the macro. |
| 180 | 180 | ||
| 181 | @node Keyboard Macro Ring | 181 | @node Keyboard Macro Ring |
| 182 | @section Where previous keyboard macros are saved | 182 | @section The Keyboard Macro Ring |
| 183 | 183 | ||
| 184 | All defined keyboard macros are recorded in the ``keyboard macro ring'', | 184 | All defined keyboard macros are recorded in the ``keyboard macro ring'', |
| 185 | a list of sequences of keys. There is only one keyboard macro ring, | 185 | a list of sequences of keys. There is only one keyboard macro ring, |
| @@ -220,6 +220,10 @@ 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 | 220 | desired macro is at the head of the ring. To execute the new macro |
| 221 | ring head immediately, just type @kbd{C-k}. | 221 | ring head immediately, just type @kbd{C-k}. |
| 222 | 222 | ||
| 223 | Note that Emacs treats the head of the macro ring as the ``last | ||
| 224 | defined keyboard macro''. For instance, it is the keyboard macro that | ||
| 225 | @kbd{C-x e} will execute. | ||
| 226 | |||
| 223 | @findex kmacro-view-macro-repeat | 227 | @findex kmacro-view-macro-repeat |
| 224 | @kindex C-x C-k C-v | 228 | @kindex C-x C-k C-v |
| 225 | 229 | ||
| @@ -264,8 +268,7 @@ incremented on every repetition of the keyboard macro. Normally, the | |||
| 264 | macro counter is initialized to 0 when you start defining the macro, | 268 | macro counter is initialized to 0 when you start defining the macro, |
| 265 | and incremented by 1 after each insertion of the counter value; | 269 | and incremented by 1 after each insertion of the counter value; |
| 266 | that is, if you insert the macro counter twice while defining the | 270 | that is, if you insert the macro counter twice while defining the |
| 267 | macro, it will be incremented by 2 time for each repetition of the | 271 | macro, the counter will increase by 2 on each repetition of the macro. |
| 268 | macro. | ||
| 269 | 272 | ||
| 270 | @findex kmacro-insert-counter | 273 | @findex kmacro-insert-counter |
| 271 | @kindex C-x C-k C-i | 274 | @kindex C-x C-k C-i |
| @@ -362,18 +365,21 @@ register as a counter, incrementing it on each repetition of the macro. | |||
| 362 | @kindex C-x C-k n | 365 | @kindex C-x C-k n |
| 363 | If you wish to save a keyboard macro for later use, you can give it | 366 | 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}). | 367 | 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 | 368 | This reads a name as an argument using the minibuffer and defines that |
| 366 | to execute the macro. The macro name is a Lisp symbol, and defining it in | 369 | name to execute the last keyboard macro, in its current form. (If you |
| 367 | this way makes it a valid command name for calling with @kbd{M-x} or for | 370 | later add to the definition of this macro, that does not alter the |
| 368 | binding a key to with @code{global-set-key} (@pxref{Keymaps}). If you | 371 | name's definition as a macro.) The macro name is a Lisp symbol, and |
| 369 | specify a name that has a prior definition other than another keyboard | 372 | defining it in this way makes it a valid command name for calling with |
| 370 | macro, an error message is shown and nothing is changed. | 373 | @kbd{M-x} or for binding a key to with @code{global-set-key} |
| 374 | (@pxref{Keymaps}). If you specify a name that has a prior definition | ||
| 375 | other than a keyboard macro, an error message is shown and nothing is | ||
| 376 | changed. | ||
| 371 | 377 | ||
| 372 | @cindex binding keyboard macros | 378 | @cindex binding keyboard macros |
| 373 | @findex kmacro-bind-to-key | 379 | @findex kmacro-bind-to-key |
| 374 | @kindex C-x C-k b | 380 | @kindex C-x C-k b |
| 375 | Rather than giving a keyboard macro a name, you can bind it to a | 381 | You can also bind the last keyboard macro to a key, using |
| 376 | key using @kbd{C-x C-k b} (@code{kmacro-bind-to-key}) followed by the | 382 | @kbd{C-x C-k b} (@code{kmacro-bind-to-key}) followed by the |
| 377 | key sequence you want the keyboard macro to be bound to. You can | 383 | 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 | 384 | bind to any key sequence in the global keymap, but since most key |
| 379 | sequences already have other bindings, you should select the key | 385 | sequences already have other bindings, you should select the key |
| @@ -414,12 +420,12 @@ save in is your init file @file{~/.emacs} (@pxref{Init File}) then the | |||
| 414 | macro will be defined each time you run Emacs. | 420 | macro will be defined each time you run Emacs. |
| 415 | 421 | ||
| 416 | If you give @code{insert-kbd-macro} a numeric argument, it makes | 422 | If you give @code{insert-kbd-macro} a numeric argument, it makes |
| 417 | additional Lisp code to record the keys (if any) that you have bound to the | 423 | additional Lisp code to record the keys (if any) that you have bound |
| 418 | keyboard macro, so that the macro will be reassigned the same keys when you | 424 | to @var{macroname}, so that the macro will be reassigned the same keys |
| 419 | load the file. | 425 | when you load the file. |
| 420 | 426 | ||
| 421 | @node Edit Keyboard Macro | 427 | @node Edit Keyboard Macro |
| 422 | @section Interactively executing and editing a keyboard macro | 428 | @section Editing a Keyboard Macro |
| 423 | 429 | ||
| 424 | @findex kmacro-edit-macro | 430 | @findex kmacro-edit-macro |
| 425 | @kindex C-x C-k C-e | 431 | @kindex C-x C-k C-e |