]> git.eshelyaron.com Git - emacs.git/commitdiff
* dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
authorMichael Albinus <michael.albinus@gmx.de>
Tue, 28 Sep 2010 13:39:22 +0000 (15:39 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Tue, 28 Sep 2010 13:39:22 +0000 (15:39 +0200)
is more portable.

* keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
(kbd_buffer_get_event): ... here. This is needed for cygwin, which
has not defined SIGIO.

src/ChangeLog
src/dbusbind.c
src/keyboard.c

index c74dd66edbbc791eb5754f6c93de3d0b2a168f3a..9a5043cf65ca48f25cea88ece3b04496f6112d9f 100644 (file)
@@ -1,3 +1,12 @@
+2010-09-28  Michael Albinus  <michael.albinus@gmx.de>
+
+       * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
+       is more portable.
+
+       * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
+       (kbd_buffer_get_event): ... here. This is needed for cygwin, which
+       has not defined SIGIO.
+
 2010-09-27  Michael Albinus  <michael.albinus@gmx.de>
 
        * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
index 93887fa990229c881e729ee83c47c92524d5ca00..f3a573d3bceda46155eda2a11662cf9cb8335c50 100644 (file)
@@ -2135,7 +2135,7 @@ message arrives.  */);
 #else
   Vdbus_debug = Qnil;
   /* We do not want to abort.  */
-  setenv ("DBUS_FATAL_WARNINGS", "0", 1);
+  putenv ("DBUS_FATAL_WARNINGS=0");
 #endif
 
   Fprovide (intern_c_string ("dbusbind"), Qnil);
index 056e379a44a96f99547901146d76368772109a4e..22c58985a565e7ed3c52dc0c0a549129e87cbefe 100644 (file)
@@ -4106,6 +4106,11 @@ kbd_buffer_get_event (kbp, used_mouse_menu, end_time)
       /* One way or another, wait until input is available; then, if
         interrupt handlers have not read it, read it now.  */
 
+#ifdef HAVE_DBUS
+      /* Read D-Bus messages.  */
+      xd_read_queued_messages ();
+#endif /* HAVE_DBUS */
+
 /* Note SIGIO has been undef'd if FIONREAD is missing.  */
 #ifdef SIGIO
       gobble_input (0);
@@ -4757,7 +4762,7 @@ timer_check (do_it_now)
 {
   EMACS_TIME nexttime;
 
-  do 
+  do
     {
       nexttime = timer_check_2 ();
     }
@@ -7051,11 +7056,6 @@ void
 gobble_input (expected)
      int expected;
 {
-#ifdef HAVE_DBUS
-  /* Read D-Bus messages.  */
-  xd_read_queued_messages ();
-#endif /* HAVE_DBUS */
-
 #ifdef SIGIO
   if (interrupt_input)
     {