aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1996-01-09 23:39:59 +0000
committerKarl Heuer1996-01-09 23:39:59 +0000
commit279a482ab2a0d38a84c18c3db680f22ad5af556d (patch)
treeab8798a87ab8ad1c900e0132929e2b6ead95699c /src
parent5badd6a0ad3fcd784c127205ee5fb8d7a8b04034 (diff)
downloademacs-279a482ab2a0d38a84c18c3db680f22ad5af556d.tar.gz
emacs-279a482ab2a0d38a84c18c3db680f22ad5af556d.zip
(describe_map): New arg nomenu.
(describe_map_tree): Pass that arg.
Diffstat (limited to 'src')
-rw-r--r--src/keymap.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/keymap.c b/src/keymap.c
index 4970e790503..43a9fb935da 100644
--- a/src/keymap.c
+++ b/src/keymap.c
@@ -2069,7 +2069,7 @@ key binding\n\
2069 2069
2070 describe_map (Fcdr (elt), Fcar (elt), 2070 describe_map (Fcdr (elt), Fcar (elt),
2071 transl ? describe_translation : describe_command, 2071 transl ? describe_translation : describe_command,
2072 partial, sub_shadows, &seen); 2072 partial, sub_shadows, &seen, nomenu);
2073 2073
2074 skip: ; 2074 skip: ;
2075 } 2075 }
@@ -2155,16 +2155,17 @@ shadow_lookup (shadow, key, flag)
2155 2155
2156/* Describe the contents of map MAP, assuming that this map itself is 2156/* Describe the contents of map MAP, assuming that this map itself is
2157 reached by the sequence of prefix keys KEYS (a string or vector). 2157 reached by the sequence of prefix keys KEYS (a string or vector).
2158 PARTIAL, SHADOW are as in `describe_map_tree' above. */ 2158 PARTIAL, SHADOW, NOMENU are as in `describe_map_tree' above. */
2159 2159
2160static void 2160static void
2161describe_map (map, keys, elt_describer, partial, shadow, seen) 2161describe_map (map, keys, elt_describer, partial, shadow, seen, nomenu)
2162 register Lisp_Object map; 2162 register Lisp_Object map;
2163 Lisp_Object keys; 2163 Lisp_Object keys;
2164 int (*elt_describer) (); 2164 int (*elt_describer) ();
2165 int partial; 2165 int partial;
2166 Lisp_Object shadow; 2166 Lisp_Object shadow;
2167 Lisp_Object *seen; 2167 Lisp_Object *seen;
2168 int nomenu;
2168{ 2169{
2169 Lisp_Object elt_prefix; 2170 Lisp_Object elt_prefix;
2170 Lisp_Object tail, definition, event; 2171 Lisp_Object tail, definition, event;
@@ -2210,6 +2211,9 @@ describe_map (map, keys, elt_describer, partial, shadow, seen)
2210 if (! (SYMBOLP (event) || INTEGERP (event))) 2211 if (! (SYMBOLP (event) || INTEGERP (event)))
2211 continue; 2212 continue;
2212 2213
2214 if (nomenu && EQ (event, Qmenu_bar))
2215 continue;
2216
2213 definition = get_keyelt (XCONS (XCONS (tail)->car)->cdr, 0); 2217 definition = get_keyelt (XCONS (XCONS (tail)->car)->cdr, 0);
2214 2218
2215 /* Don't show undefined commands or suppressed commands. */ 2219 /* Don't show undefined commands or suppressed commands. */