From d3ee989e859e0a610527c18113edc1c51d77a429 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Wed, 10 May 2006 03:32:06 +0000 Subject: [PATCH] * keymap.c (describe_map): Avoid generating duplicate entries if the shadowed binding has the same definition. --- src/ChangeLog | 5 +++++ src/keymap.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 89147db983f..7a5c3c71dcd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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 --git a/src/keymap.c b/src/keymap.c index c8158a3a691..ecc2f7b2944 100644 --- a/src/keymap.c +++ b/src/keymap.c @@ -3297,7 +3297,9 @@ describe_map (map, prefix, elt_describer, partial, shadow, 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; -- 2.39.5