(kmacro-push-ring): Let-bind history-delete-duplicates
authorKim F. Storm <storm@cua.dk>
Sun, 7 May 2006 20:49:16 +0000 (20:49 +0000)
committerKim F. Storm <storm@cua.dk>
Sun, 7 May 2006 20:49:16 +0000 (20:49 +0000)
to nil around call to add-to-history.

lisp/kmacro.el

index e54b65d..d3db76f 100644 (file)
@@ -349,7 +349,8 @@ and `kmacro-counter-format'.")
 (defun kmacro-push-ring (&optional elt)
   "Push ELT or current macro onto `kmacro-ring'."
   (when (setq elt (or elt (kmacro-ring-head)))
-    (add-to-history 'kmacro-ring elt kmacro-ring-max t)))
+    (let ((history-delete-duplicates nil))
+      (add-to-history 'kmacro-ring elt kmacro-ring-max))))
 
 
 (defun kmacro-split-ring-element (elt)