Function: evil-overriding-keymap-p

evil-overriding-keymap-p is a byte-compiled function defined in evil-core.el.

Signature

(evil-overriding-keymap-p MAP &optional STATE)

Documentation

Whether MAP is an overriding keymap for STATE.

If STATE is nil, it means any state.

Source Code

;; Defined in ~/.emacs.d/elpa/evil-20251108.138/evil-core.el
(defun evil-overriding-keymap-p (map &optional state)
  "Whether MAP is an overriding keymap for STATE.
If STATE is nil, it means any state."
  (let ((entry (and (keymapp map)
                    (lookup-key map [override-state]))))
    (cond
     ((null entry) nil)
     ((keymapp entry) (evil-overriding-keymap-p entry state))
     ((null state) map)
     ((eq entry state) map)
     ((eq entry 'all) map))))