From f7d20b3eac96b848904955fd0d3ca4867083772e Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Wed, 26 Nov 2008 20:17:24 +0000 Subject: [PATCH] * net/dbus.el (dbus-handle-event): The result of a message call can also be an object, which is not a consp. --- lisp/ChangeLog | 5 +++++ lisp/net/dbus.el | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index f5772568c98..612c1b41bbb 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2008-11-26 Michael Albinus + + * net/dbus.el (dbus-handle-event): The result of a message call + can also be an object, which is not a consp. + 2008-11-25 Alan Mackenzie * emacs-lisp/lisp.el (forward-sexp, backward-sexp, mark-sexp) diff --git a/lisp/net/dbus.el b/lisp/net/dbus.el index 5c7e719e305..13c2d39f6dd 100644 --- a/lisp/net/dbus.el +++ b/lisp/net/dbus.el @@ -362,7 +362,8 @@ If the HANDLER returns an `dbus-error', it is propagated as return message." (when (= dbus-message-type-method-call (nth 2 event)) (dbus-ignore-errors (apply 'dbus-method-return-internal - (nth 1 event) (nth 3 event) (nth 4 event) result)))) + (nth 1 event) (nth 3 event) (nth 4 event) + (if (consp result) result (list result)))))) ;; Error handling. (dbus-error ;; Return an error message when it is a message call. -- 2.39.2