aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJason Rumney2009-03-04 13:41:03 +0000
committerJason Rumney2009-03-04 13:41:03 +0000
commit2c93b2488111dd1ec3a733c26bfbe929d3fc002b (patch)
treef22991bf5a7ace162fb743d28bd64d9ad06ef9bd /src
parent10ea2b82aa4a6509a8f97f43918a6047684857f4 (diff)
downloademacs-2c93b2488111dd1ec3a733c26bfbe929d3fc002b.tar.gz
emacs-2c93b2488111dd1ec3a733c26bfbe929d3fc002b.zip
(w32_wnd_proc): Only ignore IME messages for the
characters that have already been read.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog3
-rw-r--r--src/w32fns.c9
2 files changed, 9 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 2adea67735e..f5e847ff76f 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,8 @@
12009-03-04 Jason Rumney <jasonr@gnu.org> 12009-03-04 Jason Rumney <jasonr@gnu.org>
2 2
3 * w32fns.c (w32_wnd_proc): Only ignore IME messages for the
4 characters that have already been read.
5
3 * image.c (xbm_read_bitmap_data, png_load, svg_load_image): 6 * image.c (xbm_read_bitmap_data, png_load, svg_load_image):
4 Log an error message if check_image_size failed. 7 Log an error message if check_image_size failed.
5 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load) 8 (xpm_load_image, pbm_load, jpeg_load, tiff_load, gif_load)
diff --git a/src/w32fns.c b/src/w32fns.c
index 16649cce2cb..97b9adea2ce 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -3159,10 +3159,13 @@ w32_wnd_proc (hwnd, msg, wParam, lParam)
3159 my_post_msg (&wmsg, hwnd, WM_UNICHAR, (WPARAM) buffer[i], 3159 my_post_msg (&wmsg, hwnd, WM_UNICHAR, (WPARAM) buffer[i],
3160 lParam); 3160 lParam);
3161 } 3161 }
3162 /* We output the whole string above, so ignore following ones 3162 /* Ignore the messages for the rest of the
3163 until we are notified of the end of composition. */ 3163 characters in the string that was output above. */
3164 ignore_ime_char = 1; 3164 ignore_ime_char = (size / sizeof (wchar_t)) - 1;
3165 } 3165 }
3166 else
3167 ignore_ime_char--;
3168
3166 break; 3169 break;
3167 3170
3168 case WM_IME_ENDCOMPOSITION: 3171 case WM_IME_ENDCOMPOSITION: