kmacro-x

a fork of vifon's kmacro-x
git clone https://git.trogloxene.org/kmacro-x.git
Log | Files | Refs | README | LICENSE

commit ae64410b18e12ec30a2e9490229cafbc737a68a4
parent ccb2922142c3e1f16b3eba372bc51f63dd6139cb
Author: Wojciech Siewierski <wojciech@siewierski.eu>
Date:   Fri,  3 Mar 2023 00:14:46 +0100

Reuse kmacro-x-undo-amalgamate-advice for kmacro-x-mc-apply

Ideally the original edit would also be a part of the same undo group.

Diffstat:
Mkmacro-x-mc.el | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/kmacro-x-mc.el b/kmacro-x-mc.el @@ -117,6 +117,10 @@ necessary initialization." (call-last-kbd-macro))) (kmacro-x-mc-mode 0)) +;; Always treat the bulk macro application as a single undo operation. +(advice-add #'kmacro-x-mc-apply :around + #'kmacro-x-undo-amalgamate-advice) + (defun kmacro-x-mc-quit () "Cancel the macro recording, disable `kmacro-x-mc-mode'.