Function: which-key--map-binding-p

which-key--map-binding-p is a byte-compiled function defined in which-key.el.gz.

Signature

(which-key--map-binding-p MAP KEYDESC)

Documentation

Does MAP contain KEYDESC = (key . binding)?

Source Code

;; Defined in /usr/src/emacs/lisp/which-key.el.gz
(defun which-key--map-binding-p (map keydesc)
  "Does MAP contain KEYDESC = (key . binding)?"
  (or
   (when (bound-and-true-p evil-state)
     (let ((lookup
            (which-key--safe-lookup-key-description
             map
             (which-key--current-key-string
              (format "<%s-state> %s" evil-state (car keydesc))))))
       (or (eq lookup (intern (cdr keydesc)))
           (and (keymapp lookup) (string= (cdr keydesc) "Prefix Command")))))
   (let ((lookup
          (which-key--safe-lookup-key-description
           map (which-key--current-key-string (car keydesc)))))
     (or (eq lookup (intern (cdr keydesc)))
         (and (keymapp lookup) (string= (cdr keydesc) "Prefix Command"))))))