Mercurial > emacs
comparison doc/misc/dbus.texi @ 101523:7b5ca0afd795
* dbus.texi (Errors and Events): New variable dbus-event-error-hooks.
author | Michael Albinus <michael.albinus@gmx.de> |
---|---|
date | Mon, 26 Jan 2009 20:23:30 +0000 |
parents | cb5d2387102c |
children | bb28e4b4c12c |
comparison
equal
deleted
inserted
replaced
101522:561d416172d0 | 101523:7b5ca0afd795 |
---|---|
1533 from. It is either a signal name or a method name. | 1533 from. It is either a signal name or a method name. |
1534 @end defun | 1534 @end defun |
1535 | 1535 |
1536 D-Bus errors are not propagated during event handling, because it is | 1536 D-Bus errors are not propagated during event handling, because it is |
1537 usually not desired. D-Bus errors in events can be made visible by | 1537 usually not desired. D-Bus errors in events can be made visible by |
1538 setting the variable @code{dbus-debug} to @code{t}. | 1538 setting the variable @code{dbus-debug} to @code{t}. They can also be |
1539 handled by a hook function. | |
1540 | |
1541 @defvar dbus-event-error-hooks | |
1542 This hook variable keeps a list of functions, which are called when a | |
1543 D-Bus error happens in the event handler. Every function must accept | |
1544 one argument, the error variable catched in @code{condition-case} by | |
1545 @code{dbus-error}. Example: | |
1546 | |
1547 @lisp | |
1548 (defun my-dbus-event-error-handler (err) | |
1549 (message "my-dbus-event-error-handler: %S" (cadr err))) | |
1550 | |
1551 (add-hook 'dbus-event-error-hooks 'my-dbus-event-error-handler) | |
1552 @end lisp | |
1553 @end defvar | |
1539 | 1554 |
1540 | 1555 |
1541 @node GNU Free Documentation License | 1556 @node GNU Free Documentation License |
1542 @appendix GNU Free Documentation License | 1557 @appendix GNU Free Documentation License |
1543 @include doclicense.texi | 1558 @include doclicense.texi |