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: TODO Date: Thu, 28 Feb 2008 17:20:26 +0100 Message-ID: References: <200802280200.m1S20CN2006536@localhost.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204215605 3693 80.91.229.12 (28 Feb 2008 16:20:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Feb 2008 16:20:05 +0000 (UTC) Cc: "V.Rao" , nickrob@snap.net.nz, rms@gnu.org, emacs-devel@gnu.org To: Xavier Maillard Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 28 17:20:30 2008 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 1JUlUb-0005Rz-RC for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2008 17:20:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUlU4-0001NT-JP for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2008 11:19:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUlU0-0001LE-BK for emacs-devel@gnu.org; Thu, 28 Feb 2008 11:19:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUlTy-0001Gz-C8 for emacs-devel@gnu.org; Thu, 28 Feb 2008 11:19:43 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUlTy-0001GU-0K for emacs-devel@gnu.org; Thu, 28 Feb 2008 11:19:42 -0500 Original-Received: from mailrelay1.alcatel.de ([194.113.59.95]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JUlTo-0001go-SE; Thu, 28 Feb 2008 11:19:33 -0500 Original-Received: from slbhab.alcatel.de (slbhab.bln.sel.alcatel.de [149.204.63.218]) by mailrelay1.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id m1SGJPRQ023309; Thu, 28 Feb 2008 17:19:25 +0100 In-Reply-To: <200802280200.m1S20CN2006536@localhost.localdomain> (Xavier Maillard's message of "Thu, 28 Feb 2008 03:00:12 +0100") User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (hpux) X-Scanned-By: MIMEDefang 2.57 on 149.204.45.72 X-detected-kernel: by monty-python.gnu.org: 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:90727 Archived-At: Xavier Maillard writes: > Please let me know if anyone is already working on one of these tasks. > > I can't answer your question but this entry is really > interesting. So if you need to "orient" your choice, I'd vote for > this :) > > ** Make "emacs --daemon" start emacs without showing any frame. > Use emacsclient later to open frames. > > This idea would be excellent to have. I am using a hack to mimic > such behaviour based on GNU screen (I have a GNU Emacs launched > through a screen session that acts as a server). This could be implemented easily by DBus, because it supports starting services on request. To give an impression how it could work (hacked on my Ubuntu machine, paths needed to be adapted): - Place a file daemon.el into the Emacs load path, containing: (require 'dbus) (dbus-register-method :session "org.gnu.Emacs" "/org/gnu/Emacs" "org.gnu.Emacs" "Daemon" 'recursive-edit) - Create a DBus service file "emacs.service" (in my case located at /usr/share/dbus-1/services), containing: [D-BUS Service] Name=org.gnu.Emacs Exec=/usr/local/src/emacs/src/emacs -l daemon - Emulate the DBus message, emacsclient could send: # dbus-send --session --print-reply --dest="org.gnu.Emacs" \ "/org/gnu/Emacs" "org.gnu.Emacs.Daemon" That is of course *very* rough. And going into this direction, it would require to enhance emacsclient and server.el understanding DBus messages (when available). What do people think? > Xavier Best regards, Michael.