[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: start emacs without creating frames and connect with emacsclient lat
From: |
Dan Nicolaescu |
Subject: |
Re: start emacs without creating frames and connect with emacsclient later |
Date: |
Tue, 02 Sep 2008 23:43:52 -0700 |
Stefan Monnier <address@hidden> 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.
- Re: start emacs without creating frames and connect with emacsclient later, Dan Nicolaescu, 2008/09/01
- Re: start emacs without creating frames and connect with emacsclient later, Dan Nicolaescu, 2008/09/01
- Re: start emacs without creating frames and connect with emacsclient later, Stefan Monnier, 2008/09/01
- Re: start emacs without creating frames and connect with emacsclient later, Dan Nicolaescu, 2008/09/01
- Re: start emacs without creating frames and connect with emacsclient later, Stefan Monnier, 2008/09/02
- Re: start emacs without creating frames and connect with emacsclient later,
Dan Nicolaescu <=
- Re: start emacs without creating frames and connect with emacsclient later, martin rudalics, 2008/09/03
- Re: start emacs without creating frames and connect with emacsclient later, Dan Nicolaescu, 2008/09/03
- Re: start emacs without creating frames and connect with emacsclient later, martin rudalics, 2008/09/03
- Re: start emacs without creating frames and connect with emacsclient later, Dan Nicolaescu, 2008/09/03
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Message not available
- Re: start emacs without creating frames and connect with emacsclient later, Dan Nicolaescu, 2008/09/21