aboutsummaryrefslogtreecommitdiffstats
path: root/src/macmenu.c
diff options
context:
space:
mode:
authorKim F. Storm2005-06-08 22:33:36 +0000
committerKim F. Storm2005-06-08 22:33:36 +0000
commit89f2614d96b5cf84f01c4903652a6a2b5b23d3d3 (patch)
tree9aed849b4b7e3c1a44ba3bd3b6f09a0c3002c06a /src/macmenu.c
parent5fe2b5a58dc9d211eb523b11f2731b03b8bd525d (diff)
downloademacs-89f2614d96b5cf84f01c4903652a6a2b5b23d3d3.tar.gz
emacs-89f2614d96b5cf84f01c4903652a6a2b5b23d3d3.zip
* composite.c (compose_chars_in_text):
* eval.c (do_autoload): * macmenu.c (set_frame_menubar): * process.c (read_process_output, exec_sentinel): * xmenu.c (set_frame_menubar): * xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar): * w32menu.c (set_frame_menubar): Use record_unwind_save_match_data. Rename restore_match_data to restore_search_regs.
Diffstat (limited to 'src/macmenu.c')
-rw-r--r--src/macmenu.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/macmenu.c b/src/macmenu.c
index 77c66470c09..ee83a5f609f 100644
--- a/src/macmenu.c
+++ b/src/macmenu.c
@@ -1406,7 +1406,7 @@ install_menu_quit_handler (MenuHandle menu_handle)
1406 EventTypeSpec typesList[] = { { kEventClassKeyboard, kEventRawKeyDown } }; 1406 EventTypeSpec typesList[] = { { kEventClassKeyboard, kEventRawKeyDown } };
1407 int i = MIN_MENU_ID; 1407 int i = MIN_MENU_ID;
1408 MenuHandle menu = menu_handle ? menu_handle : GetMenuHandle (i); 1408 MenuHandle menu = menu_handle ? menu_handle : GetMenuHandle (i);
1409 1409
1410 while (menu != NULL) 1410 while (menu != NULL)
1411 { 1411 {
1412 InstallMenuEventHandler (menu, handler, GetEventTypeCount (typesList), 1412 InstallMenuEventHandler (menu, handler, GetEventTypeCount (typesList),
@@ -1475,7 +1475,7 @@ set_frame_menubar (f, first_time, deep_p)
1475 because it is not reentrant. */ 1475 because it is not reentrant. */
1476 specbind (Qdebug_on_next_call, Qnil); 1476 specbind (Qdebug_on_next_call, Qnil);
1477 1477
1478 record_unwind_protect (Fset_match_data, Fmatch_data (Qnil, Qnil)); 1478 record_unwind_save_match_data ();
1479 if (NILP (Voverriding_local_map_menu_flag)) 1479 if (NILP (Voverriding_local_map_menu_flag))
1480 { 1480 {
1481 specbind (Qoverriding_terminal_local_map, Qnil); 1481 specbind (Qoverriding_terminal_local_map, Qnil);
@@ -1676,7 +1676,7 @@ pop_down_menu (arg)
1676{ 1676{
1677 struct Lisp_Save_Value *p1 = XSAVE_VALUE (Fcar (arg)); 1677 struct Lisp_Save_Value *p1 = XSAVE_VALUE (Fcar (arg));
1678 struct Lisp_Save_Value *p2 = XSAVE_VALUE (Fcdr (arg)); 1678 struct Lisp_Save_Value *p2 = XSAVE_VALUE (Fcdr (arg));
1679 1679
1680 FRAME_PTR f = p1->pointer; 1680 FRAME_PTR f = p1->pointer;
1681 MenuHandle *menu = p2->pointer; 1681 MenuHandle *menu = p2->pointer;
1682 1682
@@ -1955,7 +1955,7 @@ mac_menu_show (f, x, y, for_click, keymaps, title, error)
1955 1955
1956 /* Add event handler so we can detect C-g. */ 1956 /* Add event handler so we can detect C-g. */
1957 install_menu_quit_handler (menu); 1957 install_menu_quit_handler (menu);
1958 1958
1959 /* Display the menu. */ 1959 /* Display the menu. */
1960 menu_item_choice = PopUpMenuSelect (menu, pos.v, pos.h, 0); 1960 menu_item_choice = PopUpMenuSelect (menu, pos.v, pos.h, 0);
1961 menu_item_selection = LoWord (menu_item_choice); 1961 menu_item_selection = LoWord (menu_item_choice);