(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.
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.
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.
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.