summaryrefslogtreecommitdiff
path: root/lisp/kmacro.el
diff options
context:
space:
mode:
authorKim F. Storm <storm@cua.dk>2006-05-07 20:49:16 +0000
committerKim F. Storm <storm@cua.dk>2006-05-07 20:49:16 +0000
commit549b93ddac9b2480eec05dca37304542ca9155d3 (patch)
tree35ed2613e56be31cb98c797cba24dea74b4d1b29 /lisp/kmacro.el
parentae9d1ae3b878d499663a6ae0798117bdbeab6bc0 (diff)
downloademacs-549b93ddac9b2480eec05dca37304542ca9155d3.tar.gz
(kmacro-push-ring): Let-bind history-delete-duplicates
to nil around call to add-to-history.
Diffstat (limited to 'lisp/kmacro.el')
-rw-r--r--lisp/kmacro.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/kmacro.el b/lisp/kmacro.el
index e54b65ddb34..d3db76fcc8a 100644
--- a/lisp/kmacro.el
+++ b/lisp/kmacro.el
@@ -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)