Function: which-key--get-keymap-bindings

which-key--get-keymap-bindings is a byte-compiled function defined in which-key.el.gz.

Signature

(which-key--get-keymap-bindings KEYMAP &optional START PREFIX FILTER ALL EVIL)

Documentation

Retrieve top-level bindings from KEYMAP.

PREFIX limits bindings to those starting with this key sequence. START is a list of existing bindings to add to. If ALL is non-nil, recursively retrieve all bindings below PREFIX. If EVIL is non-nil, extract active evil bindings.

Source Code

;; Defined in /usr/src/emacs/lisp/which-key.el.gz
(defun which-key--get-keymap-bindings
    (keymap &optional start prefix filter all evil)
  "Retrieve top-level bindings from KEYMAP.
PREFIX limits bindings to those starting with this key
sequence.  START is a list of existing bindings to add to.  If ALL
is non-nil, recursively retrieve all bindings below PREFIX.  If
EVIL is non-nil, extract active evil bindings."
  (let ((bindings start)
        (ignore '(self-insert-command ignore ignore-event company-ignore))
        (evil-map
         (when (and evil (bound-and-true-p evil-local-mode))
           (lookup-key keymap (kbd (format "<%s-state>" evil-state))))))
    (when (keymapp evil-map)
      (setq bindings (which-key--get-keymap-bindings-1
                      evil-map bindings prefix filter all ignore)))
    (which-key--get-keymap-bindings-1
     keymap bindings prefix filter all ignore)))