Function: which-key--match-replacement
which-key--match-replacement is a byte-compiled function defined in
which-key.el.gz.
Signature
(which-key--match-replacement KEY-BINDING REPLACEMENT)
Source Code
;; Defined in /usr/src/emacs/lisp/which-key.el.gz
(defun which-key--match-replacement (key-binding replacement)
;; these are mode specific ones to ignore. The mode specific case is
;; handled in the selection of alist
(when (and (consp key-binding) (not (symbolp (car replacement))))
(let ((key-regexp (caar replacement))
(binding-regexp (cdar replacement))
(case-fold-search nil))
(and (or (null key-regexp)
(string-match-p key-regexp
(car key-binding)))
(or (null binding-regexp)
(string-match-p binding-regexp
(cdr key-binding)))))))