aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2009-01-28 16:10:38 +0000
committerMichael Albinus2009-01-28 16:10:38 +0000
commitf213fc091d1a93eb0606786670ae67f89a1129cf (patch)
tree2ca0b0269843a43b60d0a002f75d1ae5f6263a3f
parent74fc50477b4ee46026a4418d3682c30187130efe (diff)
downloademacs-f213fc091d1a93eb0606786670ae67f89a1129cf.tar.gz
emacs-f213fc091d1a93eb0606786670ae67f89a1129cf.zip
* net/dbus.el (dbus-event-error-hooks): Fix docstring. Describe
second parameter of hook functions. (dbus-handle-event): Apply it.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/net/dbus.el4
2 files changed, 8 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 60f20963818..9da3daaebc4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12009-01-28 Michael Albinus <michael.albinus@gmx.de>
2
3 * net/dbus.el (dbus-event-error-hooks): Fix docstring. Describe
4 second parameter of hook functions.
5 (dbus-handle-event): Apply it.
6
12009-01-28 Chong Yidong <cyd@stupidchicken.com> 72009-01-28 Chong Yidong <cyd@stupidchicken.com>
2 8
3 * mail/rmail.el (rmail-toggle-header): Don't reset 9 * mail/rmail.el (rmail-toggle-header): Don't reset
diff --git a/lisp/net/dbus.el b/lisp/net/dbus.el
index 39247b0b62d..f586a4125de 100644
--- a/lisp/net/dbus.el
+++ b/lisp/net/dbus.el
@@ -99,7 +99,7 @@ Otherwise, return result of last form in BODY, or all other errors."
99 99
100(defvar dbus-event-error-hooks nil 100(defvar dbus-event-error-hooks nil
101 "Functions to be called when a D-Bus error happens in the event handler. 101 "Functions to be called when a D-Bus error happens in the event handler.
102Every function must accept one argument, the error variable 102Every function must accept two arguments, the event and the error variable
103catched in `condition-case' by `dbus-error'.") 103catched in `condition-case' by `dbus-error'.")
104 104
105 105
@@ -379,7 +379,7 @@ If the HANDLER returns an `dbus-error', it is propagated as return message."
379 (dbus-method-error-internal 379 (dbus-method-error-internal
380 (nth 1 event) (nth 3 event) (nth 4 event) (cadr err)))) 380 (nth 1 event) (nth 3 event) (nth 4 event) (cadr err))))
381 ;; Propagate D-Bus error messages. 381 ;; Propagate D-Bus error messages.
382 (run-hook-with-args 'dbus-event-error-hooks err) 382 (run-hook-with-args 'dbus-event-error-hooks event err)
383 (when (or dbus-debug (= dbus-message-type-error (nth 2 event))) 383 (when (or dbus-debug (= dbus-message-type-error (nth 2 event)))
384 (signal (car err) (cdr err)))))) 384 (signal (car err) (cdr err))))))
385 385