From 320c9428b462841969d8b51463f3f963e776d190 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Wed, 25 Oct 2000 03:02:17 +0000 Subject: [PATCH] (fix_submap_inheritance): Use get_keymap_1 on parent_entry rather than KEYMAPP, to allow EQ to work correctly if parent_entry is a symbol. --- src/keymap.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/keymap.c b/src/keymap.c index 869cc318252..e1fbb1b3ebc 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -415,13 +415,14 @@ fix_submap_inheritance (map, event, submap) map_parent = Fkeymap_parent (map); if (! NILP (map_parent)) - parent_entry = access_keymap (map_parent, event, 0, 0, 0); + parent_entry = + get_keymap_1 (access_keymap (map_parent, event, 0, 0, 0), 0, 0); else parent_entry = Qnil; /* If MAP's parent has something other than a keymap, our own submap shadows it completely. */ - if (! KEYMAPP (parent_entry)) + if (NILP (parent_entry)) return; if (! EQ (parent_entry, submap)) -- 2.39.2