commit 3f58f5421b98b436122dba2514cf559a7359904d
parent f2d12756210f16377ce081bae9ab8fc992b89b0c
Author: Wojciech Siewierski <wojciech@siewierski.eu>
Date: Sun, 21 Jul 2024 13:03:08 +0200
Do not record kmacro-x-mc-mark-at-click into the macro!
It was mostly unnoticeable unless >3 the cursors were created from
bottom up. Then the `(delete ov kmacro-x-mc-cursors)` operation
invoked from this command (wrongly recorded into the macro
unintentionally) during the macro playback was corrupting
`kmacro-x-mc-cursors`.
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/kmacro-x-mc-extra.el b/kmacro-x-mc-extra.el
@@ -44,6 +44,7 @@ EVENT is the mouse click event.
Some code borrowed from `mc/toggle-cursor-on-click'."
(interactive "e")
(mouse-minibuffer-check event)
+ (cancel-kbd-macro-events)
(let ((position (event-end event)))
(unless (windowp (posn-window position))
(user-error "Position not in text area of window"))