diff src/keymap.c @ 70554:e1a064810f6f

* keymap.c (describe_map): Avoid generating duplicate entries if the shadowed binding has the same definition.
author Chong Yidong <cyd@stupidchicken.com>
date Wed, 10 May 2006 03:32:06 +0000
parents aa139a4a13b2
children 838fd2b04ce0 b6689e223e2f 146cd8369025
line wrap: on
line diff
--- 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;