Function: which-key--get-current-bindings

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

Signature

(which-key--get-current-bindings &optional PREFIX FILTER)

Documentation

Generate a list of current active bindings.

Source Code

;; Defined in /usr/src/emacs/lisp/which-key.el.gz
(defun which-key--get-current-bindings (&optional prefix filter)
  "Generate a list of current active bindings."
  (let (bindings
        (maps (nconc (current-active-maps t)
                     (mapcar #'symbol-value which-key-extra-keymaps))))
    (dolist (map maps bindings)
      (when (cdr map)
        (setq bindings
              (which-key--get-keymap-bindings
               map bindings prefix filter))))))