#include "buffer.h"
#include "charset.h"
#include "coding.h"
+#include "keymap.h"
#include <MacTypes.h>
#include <Menus.h>
/* Search for a string appearing directly as an element of the keymap.
That string is the title of the menu. */
- prompt = map_prompt (keymap);
+ prompt = Fkeymap_prompt (keymap);
if (NILP (title) && !NILP (prompt))
title = prompt;
maps[i++] = keymap = get_keymap (Fcar (tem));
- prompt = map_prompt (keymap);
+ prompt = Fkeymap_prompt (keymap);
if (NILP (title) && !NILP (prompt))
title = prompt;
}
SetPort (FRAME_MAC_WINDOW (f));
LocalToGlobal (&pos);
- /* No selection has been chosen yet. */
- menu_item_selection = 0;
-
InsertMenu (menu, -1);
/* Display the menu. */
menu_item_selection = LoWord (PopUpMenuSelect (menu, pos.v, pos.h, 0));
+ GetMenuItemRefCon (menu, menu_item_selection, &menu_item_selection);
+
DeleteMenu (POPUP_SUBMENU_ID);
#if 0