From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: TODO Date: Thu, 28 Feb 2008 12:35:09 -0500 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 1204220188 21564 80.91.229.12 (28 Feb 2008 17:36:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Feb 2008 17:36:28 +0000 (UTC) Cc: "V.Rao" , Xavier Maillard , nickrob@snap.net.nz, rms@gnu.org, emacs-devel@gnu.org To: Michael Albinus Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Feb 28 18:36:53 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 1JUmgF-0004Rc-IH for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2008 18:36:27 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUmfj-0002wp-5f for ged-emacs-devel@m.gmane.org; Thu, 28 Feb 2008 12:35:55 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUmfS-0002qh-Ts for emacs-devel@gnu.org; Thu, 28 Feb 2008 12:35:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUmfR-0002qU-Uq for emacs-devel@gnu.org; Thu, 28 Feb 2008 12:35:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUmfR-0002qR-Qd for emacs-devel@gnu.org; Thu, 28 Feb 2008 12:35:37 -0500 Original-Received: from mercure.iro.umontreal.ca ([132.204.24.67]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JUmfK-0008NV-QZ; Thu, 28 Feb 2008 12:35:30 -0500 Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca [132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP id 54E792CF7DE; Thu, 28 Feb 2008 12:35:30 -0500 (EST) Original-Received: from faina.iro.umontreal.ca (faina.iro.umontreal.ca [132.204.26.177]) by hidalgo.iro.umontreal.ca (Postfix) with ESMTP id 8C4883FE2; Thu, 28 Feb 2008 12:35:09 -0500 (EST) Original-Received: by faina.iro.umontreal.ca (Postfix, from userid 20848) id 78D516CAAA; Thu, 28 Feb 2008 12:35:09 -0500 (EST) In-Reply-To: (Michael Albinus's message of "Thu, 28 Feb 2008 17:20:26 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-DIRO-MailScanner-Information: Please contact the ISP for more information X-DIRO-MailScanner: Found to be clean X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=-2.819, requis 5, autolearn=not spam, ALL_TRUSTED -2.82, STOCK_S_SYMB 0.00) X-DIRO-MailScanner-From: monnier@iro.umontreal.ca X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) 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:90741 Archived-At: >> 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): You're talking about something different. You're talking about auto-starting Emacs (in daemon mode) on demand. This can already be done by a few changes to emacsclient.c (to make it run "emacs -f server-mode" if the server is not running already). What the above TODO item is talking about is the question of how to start Emacs without showing any frame. Most of the code is there already: if you look in startup.el you'll see that Emacs starts with an "initial-terminal" which is basically a pseudo terminal with a pseudo frame which corresponds to stdin/stdout and at some later point a real terminal (with a real frame) is created either on the current tty or on the current GUI display. When running in batch mode, we only run with this initial-terminal. Maybe all we need is something like "emacs --batch -f server-mode -f top-level". But I expect that this will uncover all kinds of funny problems. Stefan