# HG changeset patch # User Kim F. Storm # Date 1169598390 0 # Node ID 42d89518722a11a7bdd92c46fe8c15144160a583 # Parent 496d2145a60d048fd8b6af4e487205b74da522d1 (describe_map): Don't consider prefix keys to be shadowed. diff -r 496d2145a60d -r 42d89518722a src/keymap.c --- a/src/keymap.c Wed Jan 24 00:26:20 2007 +0000 +++ b/src/keymap.c Wed Jan 24 00:26:30 2007 +0000 @@ -3455,9 +3455,13 @@ tem = shadow_lookup (shadow, kludge, Qt); if (!NILP (tem)) { + /* If both bindings are keymaps, this key is a prefix key, + so don't say it is shadowed. */ + if (KEYMAPP (definition) && KEYMAPP (tem)) + ; /* Avoid generating duplicate entries if the - shadowed binding has the same definition. */ - if (mention_shadow && !EQ (tem, definition)) + shadowed binding has the same definition. */ + else if (mention_shadow && !EQ (tem, definition)) this_shadowed = 1; else continue;