aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2014-05-16 15:11:09 +0200
committerMichael Albinus2014-05-16 15:11:09 +0200
commit1bafb1dedeb27bbe08aa25339fc990e2afaee103 (patch)
tree1eb2d4b1a260440b04c3d409ab00209e40973a39
parent2aa03011f71f639cb0cd5f97731ee555280029fb (diff)
downloademacs-1bafb1dedeb27bbe08aa25339fc990e2afaee103.tar.gz
emacs-1bafb1dedeb27bbe08aa25339fc990e2afaee103.zip
* 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
-rw-r--r--lisp/ChangeLog7
-rw-r--r--lisp/net/dbus.el12
2 files changed, 19 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5ec35ffd14f..3907aade58e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,10 @@
12014-05-16 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/dbus.el (dbus-init-bus, dbus-call-method)
4 (dbus-call-method-asynchronously, dbus-send-signal)
5 (dbus-method-return-internal, dbus-method-error-internal)
6 Check, whether Emacs has been compiled with D-Bus support. (Bug#17508)
7
12014-05-14 Nicolas Richard <theonewiththeevillook@yahoo.fr> 82014-05-14 Nicolas Richard <theonewiththeevillook@yahoo.fr>
2 9
3 * emacs-lisp/eieio-opt.el (eieio-help-class): Correctly deal with 10 * 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.
277 277
278 => \"i686\"" 278 => \"i686\""
279 279
280 (or (featurep 'dbusbind)
281 (signal 'dbus-error (list "Emacs not compiled with dbus support")))
280 (or (memq bus '(:system :session)) (stringp bus) 282 (or (memq bus '(:system :session)) (stringp bus)
281 (signal 'wrong-type-argument (list 'keywordp bus))) 283 (signal 'wrong-type-argument (list 'keywordp bus)))
282 (or (stringp service) 284 (or (stringp service)
@@ -380,6 +382,8 @@ Example:
380 382
381 -| i686" 383 -| i686"
382 384
385 (or (featurep 'dbusbind)
386 (signal 'dbus-error (list "Emacs not compiled with dbus support")))
383 (or (memq bus '(:system :session)) (stringp bus) 387 (or (memq bus '(:system :session)) (stringp bus)
384 (signal 'wrong-type-argument (list 'keywordp bus))) 388 (signal 'wrong-type-argument (list 'keywordp bus)))
385 (or (stringp service) 389 (or (stringp service)
@@ -428,6 +432,8 @@ Example:
428 :session nil \"/org/gnu/Emacs\" \"org.gnu.Emacs.FileManager\" 432 :session nil \"/org/gnu/Emacs\" \"org.gnu.Emacs.FileManager\"
429 \"FileModified\" \"/home/albinus/.emacs\")" 433 \"FileModified\" \"/home/albinus/.emacs\")"
430 434
435 (or (featurep 'dbusbind)
436 (signal 'dbus-error (list "Emacs not compiled with dbus support")))
431 (or (memq bus '(:system :session)) (stringp bus) 437 (or (memq bus '(:system :session)) (stringp bus)
432 (signal 'wrong-type-argument (list 'keywordp bus))) 438 (signal 'wrong-type-argument (list 'keywordp bus)))
433 (or (null service) (stringp service) 439 (or (null service) (stringp service)
@@ -446,6 +452,8 @@ Example:
446 "Return for message SERIAL on the D-Bus BUS. 452 "Return for message SERIAL on the D-Bus BUS.
447This is an internal function, it shall not be used outside dbus.el." 453This is an internal function, it shall not be used outside dbus.el."
448 454
455 (or (featurep 'dbusbind)
456 (signal 'dbus-error (list "Emacs not compiled with dbus support")))
449 (or (memq bus '(:system :session)) (stringp bus) 457 (or (memq bus '(:system :session)) (stringp bus)
450 (signal 'wrong-type-argument (list 'keywordp bus))) 458 (signal 'wrong-type-argument (list 'keywordp bus)))
451 (or (stringp service) 459 (or (stringp service)
@@ -460,6 +468,8 @@ This is an internal function, it shall not be used outside dbus.el."
460 "Return error message for message SERIAL on the D-Bus BUS. 468 "Return error message for message SERIAL on the D-Bus BUS.
461This is an internal function, it shall not be used outside dbus.el." 469This is an internal function, it shall not be used outside dbus.el."
462 470
471 (or (featurep 'dbusbind)
472 (signal 'dbus-error (list "Emacs not compiled with dbus support")))
463 (or (memq bus '(:system :session)) (stringp bus) 473 (or (memq bus '(:system :session)) (stringp bus)
464 (signal 'wrong-type-argument (list 'keywordp bus))) 474 (signal 'wrong-type-argument (list 'keywordp bus)))
465 (or (stringp service) 475 (or (stringp service)
@@ -1763,6 +1773,8 @@ connection used in the same Emacs process, like the one established by
1763GTK+. It should be used with care for at least the `:system' and 1773GTK+. It should be used with care for at least the `:system' and
1764`:session' buses, because other Emacs Lisp packages might already use 1774`:session' buses, because other Emacs Lisp packages might already use
1765this connection to those buses." 1775this connection to those buses."
1776 (or (featurep 'dbusbind)
1777 (signal 'dbus-error (list "Emacs not compiled with dbus support")))
1766 (dbus--init-bus bus private) 1778 (dbus--init-bus bus private)
1767 (dbus-register-signal 1779 (dbus-register-signal
1768 bus nil dbus-path-local dbus-interface-local 1780 bus nil dbus-path-local dbus-interface-local