mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-24 07:20:37 +00:00
Make keymap-lookup work for keymap results, too
* lisp/keymap.el (keymap-lookup): Make this function work for non-symbol lookups, too (bug#52374).
This commit is contained in:
parent
e98ca32176
commit
79825f724f
@ -411,9 +411,10 @@ specified buffer position instead of point are used."
|
||||
(error "Can't pass in both keymap and position"))
|
||||
(if keymap
|
||||
(let ((value (lookup-key keymap (key-parse key) accept-default)))
|
||||
(when (and (not no-remap)
|
||||
(if (and (not no-remap)
|
||||
(symbolp value))
|
||||
(or (command-remapping value) value)))
|
||||
(or (command-remapping value) value)
|
||||
value))
|
||||
(key-binding (kbd key) accept-default no-remap position)))
|
||||
|
||||
(defun keymap-local-lookup (keys &optional accept-default)
|
||||
|
Loading…
Reference in New Issue
Block a user