Function: keymap-local-lookup
keymap-local-lookup is a byte-compiled function defined in
compat-29.el.
Signature
(keymap-local-lookup KEYS &optional ACCEPT-DEFAULT)
Documentation
[Compatibility function for keymap-local-lookup, defined in Emacs 29.1. See
(compat) Emacs 29.1' for more details.]
Return the binding for command KEYS in current local keymap only. KEY is a
string that satisfies key-valid-p.
The binding is probably a symbol with a function definition.
If optional argument ACCEPT-DEFAULT is non-nil, recognize default bindings; see
the description of keymap-lookup for more details about this.
Source Code
;; Defined in ~/.emacs.d/elpa/compat-30.1.0.1/compat-29.el
(compat-defun keymap-local-lookup (keys &optional accept-default) ;; <compat-tests:keymap-local-lookup>
"Return the binding for command KEYS in current local keymap only.
KEY is a string that satisfies `key-valid-p'.
The binding is probably a symbol with a function definition.
If optional argument ACCEPT-DEFAULT is non-nil, recognize default
bindings; see the description of `keymap-lookup' for more details
about this."
(when-let ((map (current-local-map)))
(keymap-lookup map keys accept-default)))