diff options
| author | Stefan Monnier | 2011-03-31 00:24:03 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2011-03-31 00:24:03 -0400 |
| commit | 40d83b412f584cc02e68d4eac8fd5e6eb769e2fe (patch) | |
| tree | b56f27a7e6d75a8c1fd27b00179a27b5efea0a32 /src/w32fns.c | |
| parent | f488fb6528738131ef41859e1f04125f2e50efce (diff) | |
| parent | 44f230aa043ebb222aa0876b44d70484d5dd38db (diff) | |
| download | emacs-40d83b412f584cc02e68d4eac8fd5e6eb769e2fe.tar.gz emacs-40d83b412f584cc02e68d4eac8fd5e6eb769e2fe.zip | |
Merge from trunk
Diffstat (limited to 'src/w32fns.c')
| -rw-r--r-- | src/w32fns.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index 0c899cdceff..821cc671646 100644 --- a/src/w32fns.c +++ b/src/w32fns.c | |||
| @@ -183,7 +183,7 @@ unsigned int msh_mousewheel = 0; | |||
| 183 | #define MENU_FREE_DELAY 1000 | 183 | #define MENU_FREE_DELAY 1000 |
| 184 | static unsigned menu_free_timer = 0; | 184 | static unsigned menu_free_timer = 0; |
| 185 | 185 | ||
| 186 | #ifdef GLYPH_DEBUG | 186 | #if GLYPH_DEBUG |
| 187 | int image_cache_refcount, dpyinfo_refcount; | 187 | int image_cache_refcount, dpyinfo_refcount; |
| 188 | #endif | 188 | #endif |
| 189 | 189 | ||
| @@ -1527,7 +1527,6 @@ void | |||
| 1527 | x_set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval) | 1527 | x_set_menu_bar_lines (struct frame *f, Lisp_Object value, Lisp_Object oldval) |
| 1528 | { | 1528 | { |
| 1529 | int nlines; | 1529 | int nlines; |
| 1530 | int olines = FRAME_MENU_BAR_LINES (f); | ||
| 1531 | 1530 | ||
| 1532 | /* Right now, menu bars don't work properly in minibuf-only frames; | 1531 | /* Right now, menu bars don't work properly in minibuf-only frames; |
| 1533 | most of the commands try to apply themselves to the minibuffer | 1532 | most of the commands try to apply themselves to the minibuffer |
| @@ -2863,7 +2862,6 @@ w32_wnd_proc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) | |||
| 2863 | base character (ie. translating the base key plus | 2862 | base character (ie. translating the base key plus |
| 2864 | shift modifier). */ | 2863 | shift modifier). */ |
| 2865 | int add; | 2864 | int add; |
| 2866 | int isdead = 0; | ||
| 2867 | KEY_EVENT_RECORD key; | 2865 | KEY_EVENT_RECORD key; |
| 2868 | 2866 | ||
| 2869 | key.bKeyDown = TRUE; | 2867 | key.bKeyDown = TRUE; |
| @@ -2951,7 +2949,7 @@ w32_wnd_proc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) | |||
| 2951 | HIMC context = get_ime_context_fn (hwnd); | 2949 | HIMC context = get_ime_context_fn (hwnd); |
| 2952 | wmsg.dwModifiers = w32_get_key_modifiers (wParam, lParam); | 2950 | wmsg.dwModifiers = w32_get_key_modifiers (wParam, lParam); |
| 2953 | /* Get buffer size. */ | 2951 | /* Get buffer size. */ |
| 2954 | size = get_composition_string_fn (context, GCS_RESULTSTR, buffer, 0); | 2952 | size = get_composition_string_fn (context, GCS_RESULTSTR, NULL, 0); |
| 2955 | buffer = alloca (size); | 2953 | buffer = alloca (size); |
| 2956 | size = get_composition_string_fn (context, GCS_RESULTSTR, | 2954 | size = get_composition_string_fn (context, GCS_RESULTSTR, |
| 2957 | buffer, size); | 2955 | buffer, size); |
| @@ -3981,7 +3979,7 @@ unwind_create_frame (Lisp_Object frame) | |||
| 3981 | /* If frame is ``official'', nothing to do. */ | 3979 | /* If frame is ``official'', nothing to do. */ |
| 3982 | if (!CONSP (Vframe_list) || !EQ (XCAR (Vframe_list), frame)) | 3980 | if (!CONSP (Vframe_list) || !EQ (XCAR (Vframe_list), frame)) |
| 3983 | { | 3981 | { |
| 3984 | #ifdef GLYPH_DEBUG | 3982 | #if GLYPH_DEBUG |
| 3985 | struct w32_display_info *dpyinfo = FRAME_W32_DISPLAY_INFO (f); | 3983 | struct w32_display_info *dpyinfo = FRAME_W32_DISPLAY_INFO (f); |
| 3986 | #endif | 3984 | #endif |
| 3987 | 3985 | ||
| @@ -4522,8 +4520,6 @@ DISPLAY should be either a frame or a display name (a string). | |||
| 4522 | If omitted or nil, that stands for the selected frame's display. */) | 4520 | If omitted or nil, that stands for the selected frame's display. */) |
| 4523 | (Lisp_Object display) | 4521 | (Lisp_Object display) |
| 4524 | { | 4522 | { |
| 4525 | struct w32_display_info *dpyinfo = check_x_display_info (display); | ||
| 4526 | |||
| 4527 | return make_number (1); | 4523 | return make_number (1); |
| 4528 | } | 4524 | } |
| 4529 | 4525 | ||
| @@ -4820,7 +4816,6 @@ If DISPLAY is nil, that stands for the selected frame's display. */) | |||
| 4820 | (Lisp_Object display) | 4816 | (Lisp_Object display) |
| 4821 | { | 4817 | { |
| 4822 | struct w32_display_info *dpyinfo = check_x_display_info (display); | 4818 | struct w32_display_info *dpyinfo = check_x_display_info (display); |
| 4823 | int i; | ||
| 4824 | 4819 | ||
| 4825 | if (dpyinfo->reference_count > 0) | 4820 | if (dpyinfo->reference_count > 0) |
| 4826 | error ("Display still has frames on it"); | 4821 | error ("Display still has frames on it"); |
| @@ -5173,7 +5168,7 @@ x_create_tip_frame (struct w32_display_info *dpyinfo, | |||
| 5173 | Lisp_Object parms, Lisp_Object text) | 5168 | Lisp_Object parms, Lisp_Object text) |
| 5174 | { | 5169 | { |
| 5175 | struct frame *f; | 5170 | struct frame *f; |
| 5176 | Lisp_Object frame, tem; | 5171 | Lisp_Object frame; |
| 5177 | Lisp_Object name; | 5172 | Lisp_Object name; |
| 5178 | long window_prompting = 0; | 5173 | long window_prompting = 0; |
| 5179 | int width, height; | 5174 | int width, height; |