diff options
| author | Kim F. Storm | 2002-09-20 20:38:18 +0000 |
|---|---|---|
| committer | Kim F. Storm | 2002-09-20 20:38:18 +0000 |
| commit | 5190c95ed41e6e59020362b7e37533ec302d5931 (patch) | |
| tree | 7f2c7524061158c3731f1f7b710718202fdc7a58 | |
| parent | 0acc535781bc9b01a388bd701fcf1e05076ed027 (diff) | |
| download | emacs-5190c95ed41e6e59020362b7e37533ec302d5931.tar.gz emacs-5190c95ed41e6e59020362b7e37533ec302d5931.zip | |
(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.
| -rw-r--r-- | lisp/kmacro.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/kmacro.el b/lisp/kmacro.el index d74ea0907da..4b890f206ca 100644 --- a/lisp/kmacro.el +++ b/lisp/kmacro.el | |||
| @@ -769,6 +769,7 @@ following additional answers: `insert', `insert-1', `replace', `replace-1', | |||
| 769 | (define-key kmacro-step-edit-map "f" 'skip-keep) | 769 | (define-key kmacro-step-edit-map "f" 'skip-keep) |
| 770 | (define-key kmacro-step-edit-map "q" 'quit) | 770 | (define-key kmacro-step-edit-map "q" 'quit) |
| 771 | (define-key kmacro-step-edit-map "d" 'skip) | 771 | (define-key kmacro-step-edit-map "d" 'skip) |
| 772 | (define-key kmacro-step-edit-map "\C-d" 'skip) | ||
| 772 | (define-key kmacro-step-edit-map "i" 'insert) | 773 | (define-key kmacro-step-edit-map "i" 'insert) |
| 773 | (define-key kmacro-step-edit-map "I" 'insert-1) | 774 | (define-key kmacro-step-edit-map "I" 'insert-1) |
| 774 | (define-key kmacro-step-edit-map "r" 'replace) | 775 | (define-key kmacro-step-edit-map "r" 'replace) |
| @@ -917,7 +918,7 @@ following additional answers: `insert', `insert-1', `replace', `replace-1', | |||
| 917 | ((eq act 'skip-rest) | 918 | ((eq act 'skip-rest) |
| 918 | (setq kmacro-step-edit-active 'ignore) | 919 | (setq kmacro-step-edit-active 'ignore) |
| 919 | nil) | 920 | nil) |
| 920 | ((eq act 'automatic) | 921 | ((memq act '(automatic exit)) |
| 921 | (setq kmacro-step-edit-active nil) | 922 | (setq kmacro-step-edit-active nil) |
| 922 | (setq act t) | 923 | (setq act t) |
| 923 | t) | 924 | t) |
| @@ -1092,8 +1093,11 @@ To customize possible responses, change the \"bindings\" in `kmacro-step-edit-ma | |||
| 1092 | (add-hook 'post-command-hook 'kmacro-step-edit-post-command t) | 1093 | (add-hook 'post-command-hook 'kmacro-step-edit-post-command t) |
| 1093 | (add-hook 'minibuffer-setup-hook 'kmacro-step-edit-minibuf-setup t) | 1094 | (add-hook 'minibuffer-setup-hook 'kmacro-step-edit-minibuf-setup t) |
| 1094 | (call-last-kbd-macro nil nil) | 1095 | (call-last-kbd-macro nil nil) |
| 1095 | (if kmacro-step-edit-replace | 1096 | (when (and kmacro-step-edit-replace |
| 1096 | (setq last-kbd-macro kmacro-step-edit-new-macro)))) | 1097 | kmacro-step-edit-new-macro |
| 1098 | (not (equal last-kbd-macro kmacro-step-edit-new-macro))) | ||
| 1099 | (kmacro-push-ring) | ||
| 1100 | (setq last-kbd-macro kmacro-step-edit-new-macro)))) | ||
| 1097 | 1101 | ||
| 1098 | (provide 'kmacro) | 1102 | (provide 'kmacro) |
| 1099 | ;;; kmacro.el ends here | 1103 | ;;; kmacro.el ends here |