aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Albinus2010-09-28 15:39:22 +0200
committerMichael Albinus2010-09-28 15:39:22 +0200
commitdec834684640a6495b39bf11e500d326b4ff193b (patch)
tree5df895cb9e1a97c7d4b6aac2056fe795dadbe3e5 /src
parent53ad04fc4628d0c75ff3054bd3b77c8689fca6d4 (diff)
downloademacs-dec834684640a6495b39bf11e500d326b4ff193b.tar.gz
emacs-dec834684640a6495b39bf11e500d326b4ff193b.zip
* 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.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog9
-rw-r--r--src/dbusbind.c2
-rw-r--r--src/keyboard.c12
3 files changed, 16 insertions, 7 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index c74dd66edbb..9a5043cf65c 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,12 @@
12010-09-28 Michael Albinus <michael.albinus@gmx.de>
2
3 * dbusbind.c (syms_of_dbusbind): Use putenv instead of setenv, it
4 is more portable.
5
6 * keyboard.c (gobble_input): Move call of xd_read_queued_messages ...
7 (kbd_buffer_get_event): ... here. This is needed for cygwin, which
8 has not defined SIGIO.
9
12010-09-27 Michael Albinus <michael.albinus@gmx.de> 102010-09-27 Michael Albinus <michael.albinus@gmx.de>
2 11
3 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0". 12 * dbusbind.c (syms_of_dbusbind): Set $DBUS_FATAL_WARNINGS to "0".
diff --git a/src/dbusbind.c b/src/dbusbind.c
index 93887fa9902..f3a573d3bce 100644
--- a/src/dbusbind.c
+++ b/src/dbusbind.c
@@ -2135,7 +2135,7 @@ message arrives. */);
2135#else 2135#else
2136 Vdbus_debug = Qnil; 2136 Vdbus_debug = Qnil;
2137 /* We do not want to abort. */ 2137 /* We do not want to abort. */
2138 setenv ("DBUS_FATAL_WARNINGS", "0", 1); 2138 putenv ("DBUS_FATAL_WARNINGS=0");
2139#endif 2139#endif
2140 2140
2141 Fprovide (intern_c_string ("dbusbind"), Qnil); 2141 Fprovide (intern_c_string ("dbusbind"), Qnil);
diff --git a/src/keyboard.c b/src/keyboard.c
index 056e379a44a..22c58985a56 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -4106,6 +4106,11 @@ kbd_buffer_get_event (kbp, used_mouse_menu, end_time)
4106 /* One way or another, wait until input is available; then, if 4106 /* One way or another, wait until input is available; then, if
4107 interrupt handlers have not read it, read it now. */ 4107 interrupt handlers have not read it, read it now. */
4108 4108
4109#ifdef HAVE_DBUS
4110 /* Read D-Bus messages. */
4111 xd_read_queued_messages ();
4112#endif /* HAVE_DBUS */
4113
4109/* Note SIGIO has been undef'd if FIONREAD is missing. */ 4114/* Note SIGIO has been undef'd if FIONREAD is missing. */
4110#ifdef SIGIO 4115#ifdef SIGIO
4111 gobble_input (0); 4116 gobble_input (0);
@@ -4757,7 +4762,7 @@ timer_check (do_it_now)
4757{ 4762{
4758 EMACS_TIME nexttime; 4763 EMACS_TIME nexttime;
4759 4764
4760 do 4765 do
4761 { 4766 {
4762 nexttime = timer_check_2 (); 4767 nexttime = timer_check_2 ();
4763 } 4768 }
@@ -7051,11 +7056,6 @@ void
7051gobble_input (expected) 7056gobble_input (expected)
7052 int expected; 7057 int expected;
7053{ 7058{
7054#ifdef HAVE_DBUS
7055 /* Read D-Bus messages. */
7056 xd_read_queued_messages ();
7057#endif /* HAVE_DBUS */
7058
7059#ifdef SIGIO 7059#ifdef SIGIO
7060 if (interrupt_input) 7060 if (interrupt_input)
7061 { 7061 {