Function: which-key--safe-lookup-key
which-key--safe-lookup-key is a byte-compiled function defined in
which-key.el.gz.
Signature
(which-key--safe-lookup-key KEYMAP KEY)
Documentation
Version of lookup-key that allows KEYMAP to be nil.
Also convert numeric results of lookup-key to nil.
KEY is not checked.
Source Code
;; Defined in /usr/src/emacs/lisp/which-key.el.gz
(defsubst which-key--safe-lookup-key (keymap key)
"Version of `lookup-key' that allows KEYMAP to be nil.
Also convert numeric results of `lookup-key' to nil.
KEY is not checked."
(when (keymapp keymap)
(let ((result (lookup-key keymap key)))
(when (and result (not (numberp result)))
result))))