Function: evil-intercept-keymap-p
evil-intercept-keymap-p is a byte-compiled function defined in
evil-core.el.
Signature
(evil-intercept-keymap-p MAP &optional STATE)
Documentation
Whether MAP is an intercept 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-intercept-keymap-p (map &optional state)
"Whether MAP is an intercept keymap for STATE.
If STATE is nil, it means any state."
(let ((entry (and (keymapp map)
(lookup-key map [intercept-state]))))
(cond
((null entry) nil)
((null state) map)
((eq entry state) map)
((eq entry 'all) map))))