kmacro-x

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

commit 83b54f219e50049ad7b61230cb8b5afd7467b9c9
parent 1721963b4de5096fcedcb9cff4635a8834c6b6f8
Author: Wojciech Siewierski <wojciech@siewierski.eu>
Date:   Thu,  9 Mar 2023 21:19:18 +0100

Replicate C-g for each cursor to allow region deactivation

Now that the initial region state of each cursor is being
recorded (the region-active property of each cursor) and replicated,
C-g no longer needs to be dropped from the macro execution.

This eliminates any issues and inconsistencies caused by silently
dropping this event from the macro.

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

diff --git a/kmacro-x-mc.el b/kmacro-x-mc.el @@ -268,10 +268,8 @@ remaining cursors." (defun kmacro-x-mc-quit () "Cancel the macro recording, disable `kmacro-x-mc-mode'. -If region is active, merely deactivate it instead. This event is -omitted from the recorded macro to prevent premature termination." +If region is active, merely deactivate it instead." (interactive) - (cancel-kbd-macro-events) (if (region-active-p) (deactivate-mark) (kmacro-x-mc-mode 0)