From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel,gmane.comp.handhelds.openmoko.community Subject: Alternative D-Bus connection (was: [ANN][SHR][Debian] New Emacs interface for FSO) Date: Thu, 19 Aug 2010 09:20:00 +0200 Message-ID: References: <8739ub655m.fsf@gmx.de> <20100819061124.GR8814@home.pavel.comp> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1282202503 26281 80.91.229.12 (19 Aug 2010 07:21:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Aug 2010 07:21:43 +0000 (UTC) Cc: List for Openmoko community discussion , emacs-devel@gnu.org To: Paul Fertser Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Aug 19 09:21:41 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OlzQM-0005gy-Vy for ged-emacs-devel@m.gmane.org; Thu, 19 Aug 2010 09:21:40 +0200 Original-Received: from localhost ([127.0.0.1]:48490 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlzQB-0001u0-Ke for ged-emacs-devel@m.gmane.org; Thu, 19 Aug 2010 03:20:19 -0400 Original-Received: from [140.186.70.92] (port=34060 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OlzQ2-0001tp-3N for emacs-devel@gnu.org; Thu, 19 Aug 2010 03:20:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OlzQ0-0004AZ-02 for emacs-devel@gnu.org; Thu, 19 Aug 2010 03:20:09 -0400 Original-Received: from mailrelay2.alcatel.de ([194.113.59.96]:48214) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OlzPz-0004A1-OP for emacs-devel@gnu.org; Thu, 19 Aug 2010 03:20:07 -0400 Original-Received: from destgsu0048.de.alcatel-lucent.com (destgsu0048.de.alcatel-lucent.com [149.204.242.4]) by mailrelay2.alcatel.de (8.14.3/8.14.3/ICT) with ESMTP id o7J7K1vg022084; Thu, 19 Aug 2010 09:20:01 +0200 Original-Received: from slbhn1.alcatel.de (slbhn1.de.alcatel-lucent.com [149.204.90.35]) by destgsu0048.de.alcatel-lucent.com (8.12.3/8.12.3) with ESMTP id o7J7K0RZ021615; Thu, 19 Aug 2010 09:20:01 +0200 (MEST) In-Reply-To: <20100819061124.GR8814@home.pavel.comp> (Paul Fertser's message of "Thu, 19 Aug 2010 08:11:24 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-Alcanet-virus-scanned: o7J7K0RZ021615 at destgsu0048.de.alcatel-lucent.com X-Scanned-By: MIMEDefang 2.64 on 149.204.45.73 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:128862 gmane.comp.handhelds.openmoko.community:57434 Archived-At: Paul Fertser writes: > Hi, 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.