From: joakim@verona.se
To: Jan Moringen <jan.moringen@uni-bielefeld.de>
Cc: emacs-devel@gnu.org
Subject: Re: Inclusion of dbus-proxy
Date: Sun, 22 Aug 2010 16:47:09 +0200 [thread overview]
Message-ID: <m3hbim902a.fsf@verona.se> (raw)
In-Reply-To: <4045_1282428217_ZZh07312bUcyR.00_1282428214.23884.594.camel@steed.robot-madness> (Jan Moringen's message of "Sun, 22 Aug 2010 00:03:33 +0200")
Jan Moringen <jan.moringen@uni-bielefeld.de> writes:
> Hi,
>
> I recently developed dbus-proxy, a framework that makes accessing remote
> D-Bus objects from Emacs Lisp easier and more transparent than the
> current `dbus-call-method' mechanism. Since I was encouraged to propose
> it for inclusion in Emacs, I'm hereby doing so. Besides being attached,
> the code is also available here:
> http://bazaar.launchpad.net/~scymtym/+junk/dbus-proxy/files
>
> Let me start with a simple example of how a typical usage of dbus-proxy
> looks:
>
> (let ((device-kit (dbus-proxy-make-remote-proxy
> :system
> "org.freedesktop.DeviceKit"
> "/org/freedesktop/DeviceKit")))
>
> ;; Retrieve the daemon-version property.
> (slot-value device-kit :daemon-version)
> (oref device-kit :daemon-version)
>
> ;; Connect to the device-event signal.
> (connect device-kit 'device-event
> (lambda (&rest args)
> (message "Device event %s" args)))
>
> ;; Enumerate subsystems.
> (enumerate-by-subsystem device-kit '("sound")))
>
> This example creates a proxy object for the device kit D-Bus object and
> uses its methods, properties and signals.
>
> dbus-proxy uses D-Bus introspection information to dynamically create
> classes and methods that reflect the structure of the remote interface
> in Emacs Lisp as naturally as possible. For example, `describe-class'
> can used to inspect the methods supported by a particular D-Bus object.
>
> dbus-proxy consists of the following components:
>
> + dbus-proxy.el
> + public programming interface
> + interface analysis
> + proxy superclasses
> + code generation
> + unit tests
> + dbus-introspection.el
> + accessors for D-Bus introspection data
> (similar to those in dbus.el)
> + parsing of signature strings
> + unit tests
>
> I am aware of the following problems with respect to the inclusion in
> Emacs:
> + Names:
> + Generated class names tend to be long and ugly and do not follow
> usual Lisp conventions
> + `connect' and `disconnect' may need a `dbus-proxy-' prefix?
> + The generated class hierarchies only work with the :c3 method
> resolution order which was added to EIEIO upstream a few months ago
> but does not seem to have been merged yet
> + The unit tests use ert which is also not currently included in Emacs
> + The use of the cl library may or may not be acceptable
>
> I have signed the copyright assignment for Emacs.
>
> What do you think?
I have used Jan:s dbus-proxy while working on Inkscape-Emacs
integration. Dbus-proxy has been very useful, so I would very much like
for dbus-proxy to be included. Maybe in the new official GNU ELPA repos?
> Kind regards,
> Jan
>
>
>
>
--
Joakim Verona
next prev parent reply other threads:[~2010-08-22 14:47 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-21 22:03 Inclusion of dbus-proxy Jan Moringen
2010-08-22 14:47 ` joakim [this message]
2010-08-22 16:20 ` Michael Albinus
2010-08-22 21:04 ` Jan Moringen
2010-08-23 13:23 ` Kevin Rodgers
2010-08-23 15:44 ` Michael Albinus
2010-08-24 2:03 ` Jan Moringen
2010-08-24 19:50 ` Michael Albinus
2010-08-24 21:32 ` Chong Yidong
2010-08-24 23:59 ` Tom Tromey
2010-08-26 10:09 ` Michael Albinus
2010-08-25 3:24 ` Jan Moringen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3hbim902a.fsf@verona.se \
--to=joakim@verona.se \
--cc=emacs-devel@gnu.org \
--cc=jan.moringen@uni-bielefeld.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.