Mercurial > emacs
diff src/keymap.c @ 75393:42d89518722a
(describe_map): Don't consider prefix keys to be shadowed.
| author | Kim F. Storm <storm@cua.dk> |
|---|---|
| date | Wed, 24 Jan 2007 00:26:30 +0000 |
| parents | 3d45362f1d38 |
| children | 54d760abd1c5 b8d9a391daf3 95d0cdf160ea |
line wrap: on
line diff
--- 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;
