From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dan Nicolaescu Newsgroups: gmane.emacs.devel Subject: Re: start emacs without creating frames and connect with emacsclient later Date: Thu, 21 Aug 2008 16:55:59 -0700 Message-ID: <200808212356.m7LNtxud020153@sallyv1.ics.uci.edu> References: <200808131610.m7DGAkvk020047@sallyv1.ics.uci.edu> <200808211720.m7LHKSne001960@sallyv1.ics.uci.edu> <48ADF25A.40102@harpegolden.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1219363147 30121 80.91.229.12 (21 Aug 2008 23:59:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Aug 2008 23:59:07 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: David De La Harpe Golden Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 22 01:59:59 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 1KWK4A-0001Yk-T3 for ged-emacs-devel@m.gmane.org; Fri, 22 Aug 2008 01:59:47 +0200 Original-Received: from localhost ([127.0.0.1]:36143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWK3C-0001us-5d for ged-emacs-devel@m.gmane.org; Thu, 21 Aug 2008 19:58:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KWK38-0001u1-NK for emacs-devel@gnu.org; Thu, 21 Aug 2008 19:58:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KWK37-0001tC-7f for emacs-devel@gnu.org; Thu, 21 Aug 2008 19:58:42 -0400 Original-Received: from [199.232.76.173] (port=51815 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KWK37-0001t9-2l for emacs-devel@gnu.org; Thu, 21 Aug 2008 19:58:41 -0400 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]:43299) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1KWK30-0004Hq-JT; Thu, 21 Aug 2008 19:58:35 -0400 X-ICS-MailScanner-Watermark: 1219967760.99926@75jFnuOBVzOwgYYQZTxigg Original-Received: from mothra.ics.uci.edu (mothra.ics.uci.edu [128.195.6.93]) by sallyv1.ics.uci.edu (8.13.7+Sun/8.13.7) with ESMTP id m7LNtxud020153; Thu, 21 Aug 2008 16:56:00 -0700 (PDT) In-Reply-To: <48ADF25A.40102@harpegolden.net> (David De La Harpe Golden's message of "Thu, 21 Aug 2008 23:55:22 +0100") Original-Lines: 49 X-ICS-MailScanner: Found to be clean X-ICS-MailScanner-SpamCheck: not spam, SpamAssassin (score=-1.44, required 5, autolearn=disabled, ALL_TRUSTED -1.44) X-ICS-MailScanner-From: dann@mothra.ics.uci.edu X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) 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:102799 Archived-At: David De La Harpe Golden writes: > Dan Nicolaescu wrote: > > "Richard M. Stallman" writes: > > > > > Should something like this go in? We do have a feature freeze, but this > > > is quite simple, and it completes the multi-tty functionality, which is > > > one of the major features of 23.1. > > > > > > I think it should go in > > > provided you write the text for etc/NEWS AND all the relevant manuals. > > > > I'll update the all the docs whenever it gets checked in. > > > > Here's a new version of the patch, now it has code to detach from the > > terminal, so it is a real daemon (how scary, emacs is haunted by daemons > > now). > > > > FWIW (Which may not be much...), I'm not sure that > [not opening an initial frame yet retaining ability to open frames] and > [daemonizing (detaching from the process group)] and > [starting an emacsclient server] > should be conflated to quite such a degree. Well, it's a design goal, and it fits perfectly my use case, which is not uncommon, a number of people have written scripts to simulate something like this with a suspended screen session. > IMO, a most useful use case for no initial full frame would be in > conjunction with systray support i.e. something like emacs --tray (or > better a customize variable) that means emacs docks into the systray > while obeying X session management. If someone wants to provide something like that, they can go ahead and develop a patch. (I personally have no interest for such a use). > That way one could start emacs like a mail client such as kmail, > at gui login, and it would be in the systray, popping up new frames > on left click, and perhaps having a right click menu > {new frame, start/stop server, quit} or the like. > > Not sure any of that need to _daemonize_ though (not saying daemonizing > isn't useful!) - in fact it might be counterproductive, as emacs > might kind of "escape" the session manager. The fact that emacs "escape" the session manager here is absolutely intentional. Being able to access an emacs session over the net, keeping emacs alive if X crashes, etc is extremely helpful.