Function: kmacro-menu--replace-all
kmacro-menu--replace-all is a byte-compiled function defined in
kmacro.el.gz.
Signature
(kmacro-menu--replace-all KMACROS)
Documentation
Replace the existing keyboard macros with those in KMACROS.
The first element in the list overwrites the values of last-kbd-macro,
kmacro-counter, and kmacro-counter-format. The remaining elements
become the value of kmacro-ring.
KMACROS is a list of kmacro objects.
Source Code
;; Defined in /usr/src/emacs/lisp/kmacro.el.gz
(defun kmacro-menu--replace-all (kmacros)
"Replace the existing keyboard macros with those in KMACROS.
The first element in the list overwrites the values of `last-kbd-macro',
`kmacro-counter', and `kmacro-counter-format'. The remaining elements
become the value of `kmacro-ring'.
KMACROS is a list of `kmacro' objects."
(if (null kmacros)
(setq last-kbd-macro nil
kmacro-counter-format kmacro-default-counter-format
kmacro-counter 0
kmacro-ring nil)
(if (not (seq-every-p #'kmacro-p kmacros))
(error "All elements must satisfy `kmacro-p'")
(kmacro-split-ring-element (car kmacros))
(setq kmacro-ring (cdr kmacros)))))