]> git.eshelyaron.com Git - emacs.git/commitdiff
msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the same in-line.
authorEli Zaretskii <eliz@gnu.org>
Sat, 20 Nov 2010 11:24:28 +0000 (13:24 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 20 Nov 2010 11:24:28 +0000 (13:24 +0200)
src/ChangeLog
src/msdos.c

index 902570f804f0513a8bb543b6d08f3b55bf159498..ae622eaac28f9dd202770d71407a9c3f68c97bcc 100644 (file)
@@ -1,3 +1,8 @@
+2010-11-20  Eli Zaretskii  <eliz@gnu.org>
+
+       * msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the
+       same in-line.
+
 2010-11-11  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * cmds.c (Fself_insert_command): Don't call XFASTINT without checking
index 6593714ba1fa162217b88738989a12a0d0793080..2f729904713f6b24125af871121dc1c1099a50e7 100644 (file)
@@ -2725,17 +2725,8 @@ dos_rawgetc (void)
          /* 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++)