1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-15 19:31:29 -07:00

(kmacro-push-ring): Let-bind history-delete-duplicates

to nil around call to add-to-history.
This commit is contained in:
Kim F. Storm 2006-05-07 20:49:16 +00:00
parent ae9d1ae3b8
commit 549b93ddac

View 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)