changeset 111642:f6c701d79adf

msdos.c (dos_rawgetc): Use gen_help_event, instead of doing the same in-line.
author Eli Zaretskii <eliz@gnu.org>
date Sat, 20 Nov 2010 13:24:28 +0200
parents 7cc8e10adfff
children f167a2ce369f 27b2c1dde9aa
files src/ChangeLog src/msdos.c
diffstat 2 files changed, 7 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/src/ChangeLog	Fri Nov 12 06:24:47 2010 +0000
+++ b/src/ChangeLog	Sat Nov 20 13:24:28 2010 +0200
@@ -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
--- a/src/msdos.c	Fri Nov 12 06:24:47 2010 +0000
+++ b/src/msdos.c	Sat Nov 20 13:24:28 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++)