From fae9b37a759d390b0783739e45bc9a0b9f462f8b Mon Sep 17 00:00:00 2001 From: Tom Dalziel Date: Wed, 19 Jun 2024 15:29:44 +0200 Subject: [PATCH] Combine after change calls during macro execution Also temporarily disable pre- and post-command hooks --- evil-commands.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/evil-commands.el b/evil-commands.el index 5605f146..4ad249fc 100644 --- a/evil-commands.el +++ b/evil-commands.el @@ -2552,7 +2552,9 @@ when called interactively." (t (condition-case err (evil-with-single-undo - (execute-kbd-macro macro count)) + (let (pre-command-hook post-command-hook) ; For performance + (combine-after-change-calls + (execute-kbd-macro macro count)))) ;; enter Normal state if the macro fails (error (evil-normal-state)