mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-05 11:21:04 -08:00
(easy-menu-get-map): Correctly handle non-submap bindings.
This commit is contained in:
parent
bb5cde6646
commit
dca6b77cab
2 changed files with 85 additions and 57 deletions
|
|
@ -600,12 +600,12 @@ In some cases we use that to select between the local and global maps."
|
|||
;; Prefer a map that already contains the to-be-modified entry.
|
||||
(when to-modify
|
||||
(dolist (map maps)
|
||||
(when (and map (not (integerp map))
|
||||
(when (and (keymapp map)
|
||||
(easy-menu-get-map-look-for-name to-modify map))
|
||||
(throw 'found map))))
|
||||
;; Use the first valid map.
|
||||
(dolist (map maps)
|
||||
(when (and map (not (integerp map)))
|
||||
(when (keymapp map)
|
||||
(throw 'found map)))
|
||||
;; Otherwise, make one up.
|
||||
;; Hardcoding current-local-map is lame, but it's difficult
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue