# HG changeset patch # User Eli Zaretskii # Date 1290253514 -7200 # Node ID 27b2c1dde9aa77733e05114f5fac632a2f83278b # Parent 224cc868d181783ec77b8f3368485b5ce6947a62# Parent f6c701d79adfc62119b5bf30ab2166efe2a0adf7 msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the same in-line. diff -r 224cc868d181 -r 27b2c1dde9aa src/ChangeLog --- a/src/ChangeLog Sat Nov 20 12:39:44 2010 +0100 +++ b/src/ChangeLog Sat Nov 20 13:45:14 2010 +0200 @@ -1,3 +1,8 @@ +2010-11-20 Eli Zaretskii + + * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the + same in-line. + 2010-11-20 Andreas Schwab * xfaces.c (lookup_face): Make static. diff -r 224cc868d181 -r 27b2c1dde9aa src/msdos.c --- a/src/msdos.c Sat Nov 20 12:39:44 2010 +0100 +++ b/src/msdos.c Sat Nov 20 13:45:14 2010 +0200 @@ -2725,17 +2725,8 @@ /* If the contents of the global variable help_echo has changed, generate a HELP_EVENT. */ if (!NILP (help_echo_string) || !NILP (previous_help_echo_string)) - { - event.kind = HELP_EVENT; - event.frame_or_window = selected_frame; - event.arg = help_echo_object; - event.x = WINDOWP (help_echo_window) - ? help_echo_window : selected_frame; - event.y = help_echo_string; - event.timestamp = event_timestamp (); - event.code = help_echo_pos; - kbd_buffer_store_event (&event); - } + gen_help_event (help_echo_string, selected_frame, help_echo_window, + help_echo_object, help_echo_pos); } for (but = 0; but < NUM_MOUSE_BUTTONS; but++)