* net/dbus.el (dbus-introspect): Use `dbus-call-method-non-blocking'.
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 24 Aug 2008 20:16:15 +0000 (20:16 +0000)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 24 Aug 2008 20:16:15 +0000 (20:16 +0000)
lisp/ChangeLog
lisp/net/dbus.el

index 4695b9d..e0078c1 100644 (file)
@@ -1,3 +1,7 @@
+2008-08-24  Michael Albinus  <michael.albinus@gmx.de>
+
+       * net/dbus.el (dbus-introspect): Use `dbus-call-method-non-blocking'.
+
 2008-08-24  Romain Francoise  <romain@orebokech.com>
 
        * progmodes/python.el (run-python): Remove '' from sys.path.
index 4fcfcef..955e99e 100644 (file)
@@ -445,9 +445,11 @@ BUS must be either the symbol `:system' or the symbol `:session'.
 SERVICE must be a known service name, and PATH must be a valid
 object path.  The last two parameters are strings.  The result,
 the introspection data, is a string in XML format."
-  ;; We don't want to raise errors.
+  ;; We don't want to raise errors.  `dbus-call-method-non-blocking'
+  ;; is used, because the handler can be registered in our Emacs
+  ;; instance; caller an callee would block each other.
   (dbus-ignore-errors
-    (dbus-call-method
+    (dbus-call-method-non-blocking
      bus service path dbus-interface-introspectable "Introspect")))
 
 (defun dbus-introspect-xml (bus service path)