Commit e7433508 authored by Michael Albinus's avatar Michael Albinus
Browse files

* dbus.texi (Errors and Events): New variable dbus-event-error-hooks.

parent bf86d09c
2009-01-26 Michael Albinus <michael.albinus@gmx.de>
* dbus.texi (Errors and Events): New variable dbus-event-error-hooks.
2009-01-26 Glenn Morris <rgm@gnu.org>
* org.texi: Fix typos.
......
......@@ -1535,7 +1535,22 @@ from. It is either a signal name or a method name.
D-Bus errors are not propagated during event handling, because it is
usually not desired. D-Bus errors in events can be made visible by
setting the variable @code{dbus-debug} to @code{t}.
setting the variable @code{dbus-debug} to @code{t}. They can also be
handled by a hook function.
@defvar dbus-event-error-hooks
This hook variable keeps a list of functions, which are called when a
D-Bus error happens in the event handler. Every function must accept
one argument, the error variable catched in @code{condition-case} by
@code{dbus-error}. Example:
@lisp
(defun my-dbus-event-error-handler (err)
(message "my-dbus-event-error-handler: %S" (cadr err)))
(add-hook 'dbus-event-error-hooks 'my-dbus-event-error-handler)
@end lisp
@end defvar
@node GNU Free Documentation License
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment