aboutsummaryrefslogtreecommitdiffstats
path: root/src/keymap.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/keymap.c')
-rw-r--r--src/keymap.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 634a52b3834..c85c37aae12 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -1,7 +1,7 @@
1/* Manipulation of keymaps 1/* Manipulation of keymaps
2 Copyright (C) 1985, 1986, 1987, 1988, 1993, 1994, 1995, 2 Copyright (C) 1985, 1986, 1987, 1988, 1993, 1994, 1995,
3 1998, 1999, 2000, 2001, 2002, 2003, 2004, 3 1998, 1999, 2000, 2001, 2002, 2003, 2004,
4 2005, 2006 Free Software Foundation, Inc. 4 2005, 2006, 2007 Free Software Foundation, Inc.
5 5
6This file is part of GNU Emacs. 6This file is part of GNU Emacs.
7 7
@@ -3448,9 +3448,13 @@ describe_map (map, prefix, elt_describer, partial, shadow,
3448 tem = shadow_lookup (shadow, kludge, Qt); 3448 tem = shadow_lookup (shadow, kludge, Qt);
3449 if (!NILP (tem)) 3449 if (!NILP (tem))
3450 { 3450 {
3451 /* If both bindings are keymaps, this key is a prefix key,
3452 so don't say it is shadowed. */
3453 if (KEYMAPP (definition) && KEYMAPP (tem))
3454 ;
3451 /* Avoid generating duplicate entries if the 3455 /* Avoid generating duplicate entries if the
3452 shadowed binding has the same definition. */ 3456 shadowed binding has the same definition. */
3453 if (mention_shadow && !EQ (tem, definition)) 3457 else if (mention_shadow && !EQ (tem, definition))
3454 this_shadowed = 1; 3458 this_shadowed = 1;
3455 else 3459 else
3456 continue; 3460 continue;