1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-20 10:23:57 +00:00
Commit Graph

24 Commits

Author SHA1 Message Date
Kim F. Storm
1b25dccd6e (group kmacro): Add :version.
(kmacro-keyboard-quit): New function to cleanup on C-g.
(kmacro-start-macro): Set defining-kbd-macro to append when
appending to last macro.
2004-11-01 23:06:32 +00:00
Kim F. Storm
52996e8c2f (kmacro-insert-counter, kmacro-add-counter): Use and
reset kmacro-initial-counter-value if set.
(kmacro-set-counter): Only set kmacro-counter if defining or executing
macro.  Set kmacro-initial-counter-value otherwise. Never set both.
(kmacro-display): Show macro counter if non-zero.
2004-10-11 22:13:20 +00:00
Kim F. Storm
424e6532c8 (kmacro-lambda-form, kmacro-extract-lambda): Add.
(kmacro-bind-to-key, kmacro-name-last-macro): Use kmacro-lambda-form.
2004-09-30 13:27:45 +00:00
Kim F. Storm
2b4b4febb2 (kmacro-step-edit-prompt): Add "%s" format to message. 2004-09-12 21:39:40 +00:00
Kim F. Storm
18d1e6c9fd (kmacro-bind-to-key): Associate dedicated macro
counter and format with binding.
(kmacro-name-last-macro): New defun.  Like name-last-kbd-macro, but
the declared macro uses own macro counter and format.  Give symbol
kmacro property.
(kmacro-keymap): Bind kmacro-name-last-macro to n.
(kmacro-start-macro, kmacro-end-macro, kmacro-call-macro)
(kmacro-end-and-call-macro): Doc fix.
2004-09-09 20:48:12 +00:00
Juri Linkov
b327c9913d * kmacro.el (kmacro-call-macro): Fix docstring. 2004-03-25 10:39:06 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Kim F. Storm
a1839f0622 (kmacro-keymap): Group related bindings in
initialization for clarity.  Bind C-s to start macro.
Remove C-r binding.
(kmacro-initial-counter-value): New defvar to hold initial counter
value in case we set the value before defining a macro.
(kmacro-insert-counter): Clear kmacro-initial-counter-value..
(kmacro-set-counter): Set kmacro-initial-counter-value if we are
not defining or executing macro.  Doc fix.
(kmacro-add-counter): Clear kmacro-initial-counter-value.
(kmacro-view-last-item, kmacro-view-item-no): New defvars used to
temporarily view older elements on the macro ring without cycling
the ring.
(kmacro-display): Doc fix.
(kmacro-exec-ring-item): New helper function.
(kmacro-call-ring-2nd): Use it.
(kmacro-call-ring-2nd-repeat): Doc fix.
(kmacro-start-macro): Use (and clear) kmacro-initial-counter-value.
(kmacro-end-or-call-macro): Execute last viewed macro (using
kmacro-exec-ring-item) from ring if this follows
kmacro-view-macro.  This allows us to find a macro on the ring
with C-x C-k C-v C-v ... and execute it (with C-k) without cycling
the ring to bring it to the head of the ring.
(kmacro-bind-to-key): Doc fix (describe reserved bindings).
Allow binding to reserved keys without specifying C-x C-k prefix.
Ask for confirmation if entered key sequence is already bound to
a non-macro command.
(kmacro-view-macro): Repeating command will show older elements
on the macro ring; C-k will execute the last viewed macro.
(kmacro-view-macro-repeat): Doc fix.  Change its kmacro-repeat
property from 'ring to 'head.
2003-08-17 22:04:44 +00:00
Richard M. Stallman
4231e11f43 (kmacro-end-and-call-macro): Doc fix. 2003-04-03 23:01:45 +00:00
Juanma Barranquero
f1180544bb Trailing whitespace deleted. 2003-02-04 12:29:42 +00:00
Kim F. Storm
5190c95ed4 (kmacro-step-edit-query): Use RET to execute rest of
macro and terminate editing.
(kmacro-step-edit-macro): Push previous macro onto ring if changed
by step editing.
2002-09-20 20:38:18 +00:00
Kim F. Storm
7fdc0c130e (kmacro-start-macro): Doc fix. 2002-09-13 07:18:27 +00:00
Kim F. Storm
28241c47e7 (kmacro-keymap): Changed bindings:
C-x C-k s to kmacro-start-macro, C-x C-k b to kmacro-bind-to-key.
2002-09-12 21:52:26 +00:00
Kim F. Storm
482b44d88e *** empty log message *** 2002-09-10 22:19:39 +00:00
Kim F. Storm
1c59ca7881 (kmacro-call-macro): Rephrase repeat prompt.
(kmacro-step-edit-map): Bind "A" to `append-end'.
(kmacro-step-edit-prompt): Fix prompt.
(kmacro-step-edit-query): Handle `append-end' response.
(kmacro-step-edit-pre-command): Activate `append-end' at end of
macro when required.
2002-09-10 22:08:45 +00:00
Miles Bader
1698f7888a (kmacro-call-macro): Deal with a non-numeric prefix arg. 2002-09-10 01:23:22 +00:00
Kim F. Storm
723d6a64c0 (kmacro-end-and-call-macro): New command to end and
call keyboard macro in one step. Bind it to C-x e by default.
(kmacro-call-macro): Use format-kbd-macro.
(kmacro-step-edit-macro): New command to interactively step edit
and execute last keyboard macro.
(kmacro-keymap): Bind SPC [C-x C-k SPC] to kmacro-step-edit-macro.
(kmacro-step-edit-mini-window-height): New custom var.
(kmacro-step-edit-map): New keymap (parent is query-replace-map).
(kmacro-step-edit-prefix-commands): New var.
(kmacro-step-edit-prompt, kmacro-step-edit-query)
(kmacro-step-edit-insert, kmacro-step-edit-pre-command)
(kmacro-step-edit-minibuf-setup, kmacro-step-edit-post-command):
New aux functions for step editing keyboard macros.
2002-09-08 20:38:04 +00:00
Kim F. Storm
c8bf445eb5 Changed default bindings from F7/F8 to F3/F4.
Changed default binding of C-x e to kmacro-end-or-call-macro.
(kmacro-call-repeat-key, kmacro-call-repeat-with-arg): New custom
variables.
(kmacro-get-prefix-arg): New function.
(kmacro-repeat-on-last-key): Renamed from kmacro-repeat-loop and improved.
Callers changed.
(kmacro-call-macro): Repeat macro by repeating last key or
key defined in kmacro-call-repeat-key.  New third arg non-nil
means to end current macro.
(kmacro-end-or-call-macro): Call kmacro-call-macro appropriately
to get repeat last key functionality.
(kmacro-start-macro-or-insert-counter): Improve doc string.
2002-08-29 13:06:26 +00:00
Andreas Schwab
63b833de37 (kmacro-start-macro): Doc fix. 2002-08-27 15:06:13 +00:00
Kim F. Storm
bcaf8c79fb Bind C-x C-k r to apply-macro-to-region-lines. 2002-08-20 10:07:40 +00:00
Kim F. Storm
1fa13bd434 Major rework based on discussions with RMS.
Most important change is that C-x C-k is now bound to a keymap
with keyboard macro related commands.  The original binding on
C-x C-k is moved to C-x C-k e.
2002-08-19 23:05:29 +00:00
Stefan Monnier
7e30f58e10 Passed it through checkdoc. Moved `provide' to the end, where it belongs. 2002-06-29 20:43:59 +00:00
Kim F. Storm
306d2bb32f Fixed copyright and keywords. 2002-06-28 22:45:16 +00:00
Kim F. Storm
c30c4abe71 New file. 2002-06-28 22:37:18 +00:00