Function: evil-concat-keymap-alists

evil-concat-keymap-alists is a byte-compiled function defined in evil-common.el.

Signature

(evil-concat-keymap-alists &rest SEQUENCES)

Documentation

Concatenate keymap association lists, removing duplicates.

A keymap alist is a list of cons cells (VAR . MAP) where each keymap may occur only once, but where the variables may be repeated
(e.g., (VAR . MAP1) (VAR . MAP2) is allowed). The order matters,
with the highest priority keymaps being listed first.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-common.el
(defun evil-concat-keymap-alists (&rest sequences)
  "Concatenate keymap association lists, removing duplicates.
A keymap alist is a list of cons cells (VAR . MAP) where each keymap
may occur only once, but where the variables may be repeated
\(e.g., (VAR . MAP1) (VAR . MAP2) is allowed). The order matters,
with the highest priority keymaps being listed first."
  (let (result)
    (dolist (sequence sequences)
      (dolist (elt sequence)
        (unless (rassq (cdr-safe elt) result)
          (push elt result))))
    (nreverse result)))