Mercurial > emacs
diff src/keymap.c @ 15378:ecfc288350ab
(fix_submap_inheritance): If parent_entry is not a keymap, use nil instead.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 10 Jun 1996 18:19:25 +0000 |
parents | 82615c826910 |
children | dd639432a55a |
line wrap: on
line diff
--- a/src/keymap.c Mon Jun 10 17:35:37 1996 +0000 +++ b/src/keymap.c Mon Jun 10 18:19:25 1996 +0000 @@ -379,6 +379,11 @@ else parent_entry = Qnil; + /* If MAP's parent has something other than a keymap, + our own submap shadows it completely, so use nil as SUBMAP's parent. */ + if (! (CONSP (parent_entry) && EQ (XCONS (parent_entry)->car, Qkeymap))) + parent_entry = Qnil; + if (! EQ (parent_entry, submap)) Fset_keymap_parent (submap, parent_entry); }