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: Tue, 02 Sep 2008 23:43:52 -0700 Message-ID: <200809030643.m836hriW019682@sallyv1.ics.uci.edu> References: <200808131610.m7DGAkvk020047@sallyv1.ics.uci.edu> <200809011402.m81E2LSf020327@sallyv1.ics.uci.edu> <200809012311.m81NB59v004969@sallyv1.ics.uci.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1220424278 31246 80.91.229.12 (3 Sep 2008 06:44:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Sep 2008 06:44:38 +0000 (UTC) Cc: rms@gnu.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 03 08:45:33 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 1Kam7K-0004D7-0G for ged-emacs-devel@m.gmane.org; Wed, 03 Sep 2008 08:45:26 +0200 Original-Received: from localhost ([127.0.0.1]:58177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kam6K-0004Fs-Ue for ged-emacs-devel@m.gmane.org; Wed, 03 Sep 2008 02:44:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kam6G-0004FB-KJ for emacs-devel@gnu.org; Wed, 03 Sep 2008 02:44:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kam6F-0004Ez-OZ for emacs-devel@gnu.org; Wed, 03 Sep 2008 02:44:20 -0400 Original-Received: from [199.232.76.173] (port=35859 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kam6F-0004Ew-MA for emacs-devel@gnu.org; Wed, 03 Sep 2008 02:44:19 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:54812) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Kam69-0001N0-DL; Wed, 03 Sep 2008 02:44:13 -0400 Original-Received: from sallyv1.ics.uci.edu ([128.195.1.109]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kam68-0006t2-AP; Wed, 03 Sep 2008 02:44:12 -0400 X-ICS-MailScanner-Watermark: 1221029035.6102@osb07gGwnTxc7F7CjHaDQA 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 m836hriW019682; Tue, 2 Sep 2008 23:43:55 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Tue, 02 Sep 2008 15:53:44 -0400") Original-Lines: 41 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 mx20.gnu.org: Solaris 10 (beta) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:103490 Archived-At: Stefan Monnier writes: > >> > I got a lot of private emails from people very happy to use this > >> > feature. And some people actually want to distribute the patch. > >> > So here's an updated version including documentation. > >> > >> What about the problem I mentioned that your code will end up not > >> calling `frame-initialize' at all? Have you looked into it? > > > AFAICT what is done in `frame-initialize' should not be needed in this case. > > Then could you add a comment that explains why? Does this sound OK? Index: startup.el =================================================================== RCS file: /cvsroot/emacs/emacs/lisp/startup.el,v retrieving revision 1.503 diff -u -3 -p -u -p -r1.503 startup.el --- startup.el 23 Aug 2008 16:59:19 -0000 1.503 +++ startup.el 3 Sep 2008 06:41:37 -0000 @@ -881,9 +881,15 @@ opening the first frame (e.g. open a con (run-hooks 'before-init-hook) - ;; Under X Window, this creates the X frame and deletes the terminal frame. - (when (fboundp 'frame-initialize) - (frame-initialize)) + (if (daemonp) + ;; Just start the server here, no need to run + ;; `frame-initialize', it deals with creating a frame and + ;; setting the parameters for the initial frame, we don't need + ;; any of those. + (server-start) + ;; Under X Window, this creates the X frame and deletes the terminal frame. + (when (and (fboundp 'frame-initialize)) + (frame-initialize))) ;; Turn off blinking cursor if so specified in X resources. This is here ;; only because all other settings of no-blinking-cursor are here.