Subject: [PATCH] Fix kmacro-insert-counter inserting the wrong counter

From: Allen Li <[email-masked]>
Date: Sun, 22 Apr 2018 19:40:42 -0700

The fix is trivial so I fixed it.
From 1259f8b32562e36d264ca530f97ac63d8d41409f Mon Sep 17 00:00:00 2001
From: Allen Li <[email-masked]>
Date: Sun, 22 Apr 2018 19:36:55 -0700
Subject: [PATCH] Fix kmacro-insert-counter inserting the wrong counter

* lisp/kmacro.el (kmacro-insert-counter): Fix counter used.
---
 lisp/kmacro.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/kmacro.el b/lisp/kmacro.el
index 8855fa5c31..375a5e7f7d 100644
--- a/lisp/kmacro.el
+++ b/lisp/kmacro.el
@@ -262,7 +262,7 @@ kmacro-insert-counter
       (setq kmacro-counter kmacro-initial-counter-value
 	    kmacro-initial-counter-value nil))
   (if (and arg (listp arg))
-      (insert (format kmacro-counter-format kmacro-last-counter))
+      (insert (format kmacro-counter-format kmacro-counter))
     (insert (format kmacro-counter-format kmacro-counter))
     (kmacro-add-counter (prefix-numeric-value arg))))
 
-- 
2.17.0