[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Alternative D-Bus connection (was: [ANN][SHR][Debian] New Emacs interfac

From: Michael Albinus
Subject: Alternative D-Bus connection (was: [ANN][SHR][Debian] New Emacs interface for FSO)
Date: Thu, 19 Aug 2010 09:20:00 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Paul Fertser <address@hidden> writes:

> Hi,


> Michael, let me take this opportunity to thank you for all the
> wonderful opportunities opened by the D-Bus integration in Emacs, it
> really rocks :)

Thank you.

> Yes, to the best of my understanding to leverage this restriction one
> needs to modify dbusbind.c. Currently the emacs bindings accept only
> :session or :system for the bus name and use dbus_bus_get() to get one
> of them. It should support also arbitrary strings and call
> dbus_connection_open() instead (in xd_initialize()).

Some months ago, I have done exactly this (I've played with D-Bus
tubes). It did work already to some extent. It shouldn't be too hard to
find my old code, and to commit it to the Emacs trunk.

> One should also not forget to call dbus_connection_unref() after he's
> done (according to
> http://dbus.freedesktop.org/doc/api/html/group__DBusConnection.html).
> I also suspect that dbus_bus_get has an interesting undesired
> side-effect: it'll kill the app if connection drops.  Not exactly what
> you want to be done with your emacs.

Thanks for the hint, I'll check.

> OTOH, i'm not sure this usecase is worth caring about. At least i know
> i'm the only user of fso.el and i do not really need that :/

At least we are now two who want to connect to alternative buses :-)

Best regards, Michael.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]