Mercurial > emacs
comparison src/keymap.c @ 14129:d0b95da4f1f2
(describe_map): New arg nomenu.
(describe_map_tree): Pass that arg.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Tue, 09 Jan 1996 23:39:59 +0000 |
parents | 6215cbb7f702 |
children | ee40177f6c68 |
comparison
equal
deleted
inserted
replaced
14128:6b1ecb157b48 | 14129:d0b95da4f1f2 |
---|---|
2067 sub_shadows = Fcons (shmap, sub_shadows); | 2067 sub_shadows = Fcons (shmap, sub_shadows); |
2068 } | 2068 } |
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 } |
2076 | 2076 |
2077 if (something) | 2077 if (something) |
2153 return Qnil; | 2153 return Qnil; |
2154 } | 2154 } |
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 |
2160 static void | 2160 static void |
2161 describe_map (map, keys, elt_describer, partial, shadow, seen) | 2161 describe_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; |
2171 Lisp_Object tem; | 2172 Lisp_Object tem; |
2172 Lisp_Object suppress; | 2173 Lisp_Object suppress; |
2206 event = XCONS (XCONS (tail)->car)->car; | 2207 event = XCONS (XCONS (tail)->car)->car; |
2207 | 2208 |
2208 /* Ignore bindings whose "keys" are not really valid events. | 2209 /* Ignore bindings whose "keys" are not really valid events. |
2209 (We get these in the frames and buffers menu.) */ | 2210 (We get these in the frames and buffers menu.) */ |
2210 if (! (SYMBOLP (event) || INTEGERP (event))) | 2211 if (! (SYMBOLP (event) || INTEGERP (event))) |
2212 continue; | |
2213 | |
2214 if (nomenu && EQ (event, Qmenu_bar)) | |
2211 continue; | 2215 continue; |
2212 | 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. */ |