emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/evil 0646631de4: Use `end-kbd-macro` to fix regression cle


From: ELPA Syncer
Subject: [nongnu] elpa/evil 0646631de4: Use `end-kbd-macro` to fix regression clearing registers (#1582)
Date: Sun, 13 Feb 2022 17:58:07 -0500 (EST)

branch: elpa/evil
commit 0646631de42db7f93c002d4430191f86f7718b63
Author: Tom Dalziel <33435574+tomdl89@users.noreply.github.com>
Commit: GitHub <noreply@github.com>

    Use `end-kbd-macro` to fix regression clearing registers (#1582)
---
 evil-commands.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/evil-commands.el b/evil-commands.el
index 3584616d46..d09da35fe8 100644
--- a/evil-commands.el
+++ b/evil-commands.el
@@ -2314,7 +2314,8 @@ The return value is the yanked text."
 (defun evil-end-and-return-macro ()
   "Like `kmacro-end-macro' but also return the macro.
 Remove \\<evil-insert-state-map>\\[evil-execute-in-normal-state] from the end."
-  (kmacro-end-macro nil)
+  ;; `end-kbd-macro' rather than `kmacro-end-macro' to allow clearing registers
+  (end-kbd-macro nil #'kmacro-loop-setup-function)
   (let ((end-keys-seq (append evil-execute-normal-keys nil))
         (last-kbd-macro-seq (append last-kbd-macro nil)))
     (unless last-kbd-macro-seq



reply via email to

[Prev in Thread] Current Thread [Next in Thread]