diff options
| author | Karl Heuer | 1996-07-12 00:22:51 +0000 |
|---|---|---|
| committer | Karl Heuer | 1996-07-12 00:22:51 +0000 |
| commit | 210df3bf250c25836a55d8835bafd6d94ef1c553 (patch) | |
| tree | 37834ce8441198f35a1803fb2cde7dd0ba65b5ea /src | |
| parent | 13f1d088c16c9ba08b96933e5a609994c376c706 (diff) | |
| download | emacs-210df3bf250c25836a55d8835bafd6d94ef1c553.tar.gz emacs-210df3bf250c25836a55d8835bafd6d94ef1c553.zip | |
(menu_bar_item): Skip menu-bar equiv keys data
to get just the keymap.
Diffstat (limited to 'src')
| -rw-r--r-- | src/keyboard.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index c4d49020676..e01e7e17f93 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -5223,6 +5223,10 @@ menu_bar_item (key, item_string, def) | |||
| 5223 | Lisp_Object enabled; | 5223 | Lisp_Object enabled; |
| 5224 | int i; | 5224 | int i; |
| 5225 | 5225 | ||
| 5226 | /* Skip menu-bar equiv keys data. */ | ||
| 5227 | if (CONSP (def) && CONSP (XCONS (def)->car)) | ||
| 5228 | def = XCONS (def)->cdr; | ||
| 5229 | |||
| 5226 | if (EQ (def, Qundefined)) | 5230 | if (EQ (def, Qundefined)) |
| 5227 | { | 5231 | { |
| 5228 | /* If a map has an explicit `undefined' as definition, | 5232 | /* If a map has an explicit `undefined' as definition, |