]> code.delx.au - gnu-emacs/commitdiff
(fix_submap_inheritance): Use get_keymap_1 on parent_entry
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 25 Oct 2000 03:02:17 +0000 (03:02 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 25 Oct 2000 03:02:17 +0000 (03:02 +0000)
rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
a symbol.

src/keymap.c

index 869cc3182526504e2289ad20341d7997a81d0ca2..e1fbb1b3ebc73ae273e7f1201114816ad7bc651f 100644 (file)
@@ -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))