Mercurial > emacs
changeset 104382:20810cc73f89
* net/dbus.el (top): Initialize only when `dbusbind' is loaded.
author | Michael Albinus <michael.albinus@gmx.de> |
---|---|
date | Fri, 21 Aug 2009 06:43:24 +0000 |
parents | c6bb32492730 |
children | d7e1177ef007 |
files | lisp/net/dbus.el |
diffstat | 1 files changed, 4 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/net/dbus.el Fri Aug 21 06:19:23 2009 +0000 +++ b/lisp/net/dbus.el Fri Aug 21 06:43:24 2009 +0000 @@ -835,9 +835,10 @@ ;; Initialize :system and :session buses. This adds their file ;; descriptors to input_wait_mask, in order to detect incoming ;; messages immediately. -(dbus-ignore-errors - (dbus-init-bus :system) - (dbus-init-bus :session)) +(when (featurep 'dbusbind) + (dbus-ignore-errors + (dbus-init-bus :system) + (dbus-init-bus :session))) (provide 'dbus)