diff options
| author | Stefan Monnier | 2010-10-15 17:55:33 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2010-10-15 17:55:33 -0400 |
| commit | 0c747cb143fa227e78f350ac353d703f489209df (patch) | |
| tree | 5b434055c797bd75eaa1e3d9d0773e586d44daee /src/dbusbind.c | |
| parent | a01a7932080e8a6e7bc8472c58cefabcc2c37df3 (diff) | |
| parent | aa095b2db98ae149737f8de00ee733b1d257ed33 (diff) | |
| download | emacs-0c747cb143fa227e78f350ac353d703f489209df.tar.gz emacs-0c747cb143fa227e78f350ac353d703f489209df.zip | |
Merge from trunk
Diffstat (limited to 'src/dbusbind.c')
| -rw-r--r-- | src/dbusbind.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/dbusbind.c b/src/dbusbind.c index ffa02e8e9c9..683b7cb583b 100644 --- a/src/dbusbind.c +++ b/src/dbusbind.c | |||
| @@ -19,7 +19,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 19 | #include <config.h> | 19 | #include <config.h> |
| 20 | 20 | ||
| 21 | #ifdef HAVE_DBUS | 21 | #ifdef HAVE_DBUS |
| 22 | #include <stdlib.h> | ||
| 23 | #include <stdio.h> | 22 | #include <stdio.h> |
| 24 | #include <dbus/dbus.h> | 23 | #include <dbus/dbus.h> |
| 25 | #include <setjmp.h> | 24 | #include <setjmp.h> |
| @@ -901,6 +900,9 @@ DEFUN ("dbus-init-bus", Fdbus_init_bus, Sdbus_init_bus, 1, 1, 0, | |||
| 901 | /* Add bus to list of registered buses. */ | 900 | /* Add bus to list of registered buses. */ |
| 902 | Vdbus_registered_buses = Fcons (bus, Vdbus_registered_buses); | 901 | Vdbus_registered_buses = Fcons (bus, Vdbus_registered_buses); |
| 903 | 902 | ||
| 903 | /* We do not want to abort. */ | ||
| 904 | putenv ("DBUS_FATAL_WARNINGS=0"); | ||
| 905 | |||
| 904 | /* Return. */ | 906 | /* Return. */ |
| 905 | return Qnil; | 907 | return Qnil; |
| 906 | } | 908 | } |
| @@ -2161,12 +2163,11 @@ be called when the D-Bus reply message arrives. */); | |||
| 2161 | doc: /* If non-nil, debug messages of D-Bus bindings are raised. */); | 2163 | doc: /* If non-nil, debug messages of D-Bus bindings are raised. */); |
| 2162 | #ifdef DBUS_DEBUG | 2164 | #ifdef DBUS_DEBUG |
| 2163 | Vdbus_debug = Qt; | 2165 | Vdbus_debug = Qt; |
| 2164 | /* We can also set environment DBUS_VERBOSE=1 in order to see more | 2166 | /* We can also set environment variable DBUS_VERBOSE=1 in order to |
| 2165 | traces. */ | 2167 | see more traces. This requires libdbus-1 to be configured with |
| 2168 | --enable-verbose-mode. */ | ||
| 2166 | #else | 2169 | #else |
| 2167 | Vdbus_debug = Qnil; | 2170 | Vdbus_debug = Qnil; |
| 2168 | /* We do not want to abort. */ | ||
| 2169 | setenv ("DBUS_FATAL_WARNINGS", "0", 1); | ||
| 2170 | #endif | 2171 | #endif |
| 2171 | 2172 | ||
| 2172 | Fprovide (intern_c_string ("dbusbind"), Qnil); | 2173 | Fprovide (intern_c_string ("dbusbind"), Qnil); |