From d3ee989e859e0a610527c18113edc1c51d77a429 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Wed, 10 May 2006 03:32:06 +0000 Subject: * keymap.c (describe_map): Avoid generating duplicate entries if the shadowed binding has the same definition. --- src/keymap.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/keymap.c') 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; -- cgit v1.2.1