From: Dan Nicolaescu <dann@ics.uci.edu>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: rms@gnu.org, emacs-devel@gnu.org
Subject: Re: start emacs without creating frames and connect with emacsclient later
Date: Tue, 02 Sep 2008 23:43:52 -0700 [thread overview]
Message-ID: <200809030643.m836hriW019682@sallyv1.ics.uci.edu> (raw)
In-Reply-To: <jwvhc8y1g1c.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 02 Sep 2008 15:53:44 -0400")
Stefan Monnier <monnier@IRO.UMontreal.CA> 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.
next prev parent reply other threads:[~2008-09-03 6:43 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-13 16:10 start emacs without creating frames and connect with emacsclient later Dan Nicolaescu
2008-08-13 16:40 ` Johannes Weiner
2008-08-13 20:49 ` Stefan Monnier
2008-08-14 5:19 ` Richard M. Stallman
2008-08-14 17:21 ` Stefan Monnier
2008-08-15 12:44 ` Richard M. Stallman
2008-08-15 15:25 ` Dan Nicolaescu
2008-08-21 17:20 ` Dan Nicolaescu
2008-08-21 22:55 ` David De La Harpe Golden
2008-08-21 23:55 ` Dan Nicolaescu
2008-08-22 5:59 ` tomas
2008-08-22 7:24 ` Paul R
2008-08-22 11:58 ` David Hansen
2008-09-01 14:03 ` Dan Nicolaescu
2008-09-01 14:02 ` Dan Nicolaescu
2008-09-01 18:29 ` Stefan Monnier
2008-09-01 23:11 ` Dan Nicolaescu
2008-09-02 19:53 ` Stefan Monnier
2008-09-03 6:43 ` Dan Nicolaescu [this message]
2008-09-03 6:50 ` martin rudalics
2008-09-03 11:53 ` Dan Nicolaescu
2008-09-03 12:38 ` martin rudalics
2008-09-03 20:14 ` Dan Nicolaescu
[not found] ` <jwv7i9tyzk5.fsf-monnier+emacs@gnu.org>
[not found] ` <200809211007.m8LA7TLQ014367@mothra.ics.uci.edu>
[not found] ` <87k5d5u359.fsf@cyd.mit.edu>
[not found] ` <jwvabe14o4w.fsf-monnier+emacs@gnu.org>
[not found] ` <200809211826.m8LIQBbq016320@mothra.ics.uci.edu>
[not found] ` <jwvskrt2tbz.fsf-monnier+emacs@gnu.org>
2008-09-21 23:36 ` Dan Nicolaescu
2008-08-15 15:36 ` Phil Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200809030643.m836hriW019682@sallyv1.ics.uci.edu \
--to=dann@ics.uci.edu \
--cc=emacs-devel@gnu.org \
--cc=monnier@iro.umontreal.ca \
--cc=rms@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).