From: Michael Albinus Date: Fri, 16 May 2014 13:11:09 +0000 (+0200) Subject: * net/dbus.el (dbus-init-bus, dbus-call-method) X-Git-Tag: emacs-24.3.92~202 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1bafb1dedeb27bbe08aa25339fc990e2afaee103;p=emacs.git * net/dbus.el (dbus-init-bus, dbus-call-method) (dbus-call-method-asynchronously, dbus-send-signal) (dbus-method-return-internal, dbus-method-error-internal) Check, whether Emacs has been compiled with D-Bus support. Fixes: debbugs:17508 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5ec35ffd14f..3907aade58e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,10 @@ +2014-05-16 Michael Albinus + + * net/dbus.el (dbus-init-bus, dbus-call-method) + (dbus-call-method-asynchronously, dbus-send-signal) + (dbus-method-return-internal, dbus-method-error-internal) + Check, whether Emacs has been compiled with D-Bus support. (Bug#17508) + 2014-05-14 Nicolas Richard * emacs-lisp/eieio-opt.el (eieio-help-class): Correctly deal with diff --git a/lisp/net/dbus.el b/lisp/net/dbus.el index 4d146a33248..7f230a9d2ab 100644 --- a/lisp/net/dbus.el +++ b/lisp/net/dbus.el @@ -277,6 +277,8 @@ object is returned instead of a list containing this single Lisp object. => \"i686\"" + (or (featurep 'dbusbind) + (signal 'dbus-error (list "Emacs not compiled with dbus support"))) (or (memq bus '(:system :session)) (stringp bus) (signal 'wrong-type-argument (list 'keywordp bus))) (or (stringp service) @@ -380,6 +382,8 @@ Example: -| i686" + (or (featurep 'dbusbind) + (signal 'dbus-error (list "Emacs not compiled with dbus support"))) (or (memq bus '(:system :session)) (stringp bus) (signal 'wrong-type-argument (list 'keywordp bus))) (or (stringp service) @@ -428,6 +432,8 @@ Example: :session nil \"/org/gnu/Emacs\" \"org.gnu.Emacs.FileManager\" \"FileModified\" \"/home/albinus/.emacs\")" + (or (featurep 'dbusbind) + (signal 'dbus-error (list "Emacs not compiled with dbus support"))) (or (memq bus '(:system :session)) (stringp bus) (signal 'wrong-type-argument (list 'keywordp bus))) (or (null service) (stringp service) @@ -446,6 +452,8 @@ Example: "Return for message SERIAL on the D-Bus BUS. This is an internal function, it shall not be used outside dbus.el." + (or (featurep 'dbusbind) + (signal 'dbus-error (list "Emacs not compiled with dbus support"))) (or (memq bus '(:system :session)) (stringp bus) (signal 'wrong-type-argument (list 'keywordp bus))) (or (stringp service) @@ -460,6 +468,8 @@ This is an internal function, it shall not be used outside dbus.el." "Return error message for message SERIAL on the D-Bus BUS. This is an internal function, it shall not be used outside dbus.el." + (or (featurep 'dbusbind) + (signal 'dbus-error (list "Emacs not compiled with dbus support"))) (or (memq bus '(:system :session)) (stringp bus) (signal 'wrong-type-argument (list 'keywordp bus))) (or (stringp service) @@ -1763,6 +1773,8 @@ connection used in the same Emacs process, like the one established by GTK+. It should be used with care for at least the `:system' and `:session' buses, because other Emacs Lisp packages might already use this connection to those buses." + (or (featurep 'dbusbind) + (signal 'dbus-error (list "Emacs not compiled with dbus support"))) (dbus--init-bus bus private) (dbus-register-signal bus nil dbus-path-local dbus-interface-local