Function: viper--lookup-key
viper--lookup-key is a byte-compiled function defined in viper.el.gz.
Signature
(viper--lookup-key MAP KEY)
Documentation
Kind of like lookup-key.
Two differences:
- KEY is a single key, not a sequence.
- the result is the "raw" binding, so it can be a menu-item, rather than the
binding contained in that menu item.
Source Code
;; Defined in /usr/src/emacs/lisp/emulation/viper.el.gz
(defun viper--lookup-key (map key)
"Kind of like `lookup-key'.
Two differences:
- KEY is a single key, not a sequence.
- the result is the \"raw\" binding, so it can be a `menu-item', rather than the
binding contained in that menu item."
(catch 'found
(map-keymap (lambda (k b) (if (equal key k) (throw 'found b))) map)))