]> git.eshelyaron.com Git - emacs.git/commit
More work on D-Bus error messages
authorMichael Albinus <michael.albinus@gmx.de>
Sun, 6 Sep 2020 18:45:29 +0000 (20:45 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sun, 6 Sep 2020 18:45:29 +0000 (20:45 +0200)
commit9ba575aeb3a28a856f40675510c5ccfcd10ef665
tree1d60e9d0ca21091be5ad61108860ad18700c1991
parent3444f397c7d20ca59f7b18f6fe95aa79b33727e5
More work on D-Bus error messages

* lisp/net/dbus.el (dbus-get-property): Adapt docstring.
(dbus-set-property): Handle case of `:write' access type.
(dbus-get-other-registered-properties): Rename from
`dbus-get-other-registered-property'.
(dbus-property-handler): Fix thinkos.

* src/dbusbind.c (xd_read_message_1): Add error_name to event args
in case of DBUS_MESSAGE_TYPE_ERROR.

* test/lisp/net/dbus-tests.el (dbus--test-enabled-session-bus)
(dbus--test-enabled-system-bus): Make them defconst.
(dbus--test-service, dbus--test-path, dbus--test-interface):
New defconst.  Replace all occurences of `dbus-service-emacs' by
`dbus--test-service'.
(dbus--test-method-handler): New defun.
(dbus-test04-register-method, dbus-test05-register-property): New tests.
lisp/net/dbus.el
src/dbusbind.c
test/lisp/net/dbus-tests.el