aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuc Teirlinck2004-08-22 02:25:16 +0000
committerLuc Teirlinck2004-08-22 02:25:16 +0000
commit2935e78878ef7868882c2dd3fe54fa61d4643122 (patch)
tree75753438c8e0f47e768075b763a9e9afaf2beeaf
parentaca16f78753587b4dc2904ac2d319b7496fdc4b9 (diff)
downloademacs-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/ChangeLog6
-rw-r--r--man/kmacro.texi38
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 @@
12004-08-21 Luc Teirlinck <teirllm@auburn.edu> 12004-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
179beginning of the line and then executing the macro. 179beginning 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'',
185a list of sequences of keys. There is only one keyboard macro ring, 185a 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
220desired macro is at the head of the ring. To execute the new macro 220desired macro is at the head of the ring. To execute the new macro
221ring head immediately, just type @kbd{C-k}. 221ring head immediately, just type @kbd{C-k}.
222 222
223 Note that Emacs treats the head of the macro ring as the ``last
224defined 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
264macro counter is initialized to 0 when you start defining the macro, 268macro counter is initialized to 0 when you start defining the macro,
265and incremented by 1 after each insertion of the counter value; 269and incremented by 1 after each insertion of the counter value;
266that is, if you insert the macro counter twice while defining the 270that is, if you insert the macro counter twice while defining the
267macro, it will be incremented by 2 time for each repetition of the 271macro, the counter will increase by 2 on each repetition of the macro.
268macro.
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
364a name using @kbd{C-x C-k n} (@code{name-last-kbd-macro}). 367a name using @kbd{C-x C-k n} (@code{name-last-kbd-macro}).
365This reads a name as an argument using the minibuffer and defines that name 368This reads a name as an argument using the minibuffer and defines that
366to execute the macro. The macro name is a Lisp symbol, and defining it in 369name to execute the last keyboard macro, in its current form. (If you
367this way makes it a valid command name for calling with @kbd{M-x} or for 370later add to the definition of this macro, that does not alter the
368binding a key to with @code{global-set-key} (@pxref{Keymaps}). If you 371name's definition as a macro.) The macro name is a Lisp symbol, and
369specify a name that has a prior definition other than another keyboard 372defining it in this way makes it a valid command name for calling with
370macro, 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
375other than a keyboard macro, an error message is shown and nothing is
376changed.
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
376key 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
377key sequence you want the keyboard macro to be bound to. You can 383key sequence you want the keyboard macro to be bound to. You can
378bind to any key sequence in the global keymap, but since most key 384bind to any key sequence in the global keymap, but since most key
379sequences already have other bindings, you should select the key 385sequences 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
414macro will be defined each time you run Emacs. 420macro 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
417additional Lisp code to record the keys (if any) that you have bound to the 423additional Lisp code to record the keys (if any) that you have bound
418keyboard macro, so that the macro will be reassigned the same keys when you 424to @var{macroname}, so that the macro will be reassigned the same keys
419load the file. 425when 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