# HG changeset patch # User Chong Yidong # Date 1147231926 0 # Node ID e1a064810f6f31cd9c3f14cf11a46b282ce7a8c9 # Parent 09d3b5632463900378048887a7065f654cba984b * keymap.c (describe_map): Avoid generating duplicate entries if the shadowed binding has the same definition. diff -r 09d3b5632463 -r e1a064810f6f src/ChangeLog --- a/src/ChangeLog Wed May 10 02:07:12 2006 +0000 +++ b/src/ChangeLog Wed May 10 03:32:06 2006 +0000 @@ -1,3 +1,8 @@ +2006-05-09 Chong Yidong + + * keymap.c (describe_map): Avoid generating duplicate entries if + the shadowed binding has the same definition. + 2006-05-09 Kenichi Handa * keymap.c (push_key_description): Handle invalid character key. diff -r 09d3b5632463 -r e1a064810f6f src/keymap.c --- a/src/keymap.c Wed May 10 02:07:12 2006 +0000 +++ b/src/keymap.c Wed May 10 03:32:06 2006 +0000 @@ -3297,7 +3297,9 @@ tem = shadow_lookup (shadow, kludge, Qt); if (!NILP (tem)) { - if (mention_shadow) + /* Avoid generating duplicate entries if the + shadowed binding has the same definition. */ + if (mention_shadow && !EQ (tem, definition)) this_shadowed = 1; else continue;