From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.devel Subject: Re: callback functions in Emacs Date: Wed, 05 Sep 2007 12:48:12 +0200 Message-ID: References: <87642qmb0g.fsf@gmx.de> <873axtz9ng.fsf@gnuvola.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1188989300 17489 80.91.229.12 (5 Sep 2007 10:48:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 5 Sep 2007 10:48:20 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Thien-Thi Nguyen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 05 12:48:19 2007 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.50) id 1ISsQj-0000OC-CP for ged-emacs-devel@m.gmane.org; Wed, 05 Sep 2007 12:48:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISsQh-0000gu-Sa for ged-emacs-devel@m.gmane.org; Wed, 05 Sep 2007 06:48:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ISsQd-0000gL-41 for emacs-devel@gnu.org; Wed, 05 Sep 2007 06:48:11 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ISsQZ-0000g9-N1 for emacs-devel@gnu.org; Wed, 05 Sep 2007 06:48:09 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ISsQZ-0000g6-H3 for emacs-devel@gnu.org; Wed, 05 Sep 2007 06:48:07 -0400 Original-Received: from mailrelay2.alcatel.de ([194.113.59.96]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1ISsQU-0000TR-Eb; Wed, 05 Sep 2007 06:48:02 -0400 Original-Received: from slbhab.alcatel.de (slbhab.bln.sel.alcatel.de [149.204.63.218]) by mailrelay2.alcatel.de (8.13.4/8.13.4/ICT) with ESMTP id l85AlspE005718; Wed, 5 Sep 2007 12:47:55 +0200 In-Reply-To: <873axtz9ng.fsf@gnuvola.org> (Thien-Thi Nguyen's message of "Wed, 05 Sep 2007 12:30:59 +0200") User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) X-Scanned-By: MIMEDefang 2.51 on 149.204.45.73 X-Detected-Kernel: Linux 2.4-2.6 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:77853 Archived-At: Thien-Thi Nguyen writes: > how about extending emacsclient to communicate d-bus messages? > that should be able to handle all three of these cases, and > furthermore handle disambiguation of multiple emacs instances. Anything goes. But first I need to do the dirty part: communicate with dbus. At least I'm able already to see all registered services, and to react on the screensaver signal. That makes me happy :-) Btw, dbus has a concept of "queued registration". If several applications register for the same service, just the first registration is active. All requests to this service are forwarded to this application. If the application disappears, the next registration from the queue will be active. This would solve indeed the Emacs server disappearance problem, because the next Emacs instance would take over control automagically. > thi Best regards, Michael.