(describe_map): Don't consider prefix keys to be shadowed.
This commit is contained in:
parent
ff40b263cb
commit
0af1451662
1 changed files with 6 additions and 2 deletions
|
@ -3455,9 +3455,13 @@ describe_map (map, prefix, elt_describer, partial, shadow,
|
|||
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;
|
||||
|
|
Loading…
Add table
Reference in a new issue