aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Francoise2008-09-28 09:37:09 +0000
committerRomain Francoise2008-09-28 09:37:09 +0000
commit7581ba4099a4784e46d62de7df844751d341d984 (patch)
tree7e2d52012cd90b02b8ba3b9b0f4857c84558f394
parentc41bd0ec431e1b15b5f800b2ca302cc27f2208f5 (diff)
downloademacs-7581ba4099a4784e46d62de7df844751d341d984.tar.gz
emacs-7581ba4099a4784e46d62de7df844751d341d984.zip
(command-line): Start the daemon server later.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/startup.el16
2 files changed, 13 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 034569fc30e..f1ed3e07e35 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12008-09-28 Romain Francoise <romain@orebokech.com>
2
3 * startup.el (command-line): Start the daemon server later.
4
12008-09-28 Martin Rudalics <rudalics@gmx.at> 52008-09-28 Martin Rudalics <rudalics@gmx.at>
2 6
3 * subr.el (read-quoted-char): Call char-resolve-modifiers 7 * subr.el (read-quoted-char): Call char-resolve-modifiers
diff --git a/lisp/startup.el b/lisp/startup.el
index 0833f98d4dd..5bd73f9e889 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -881,13 +881,8 @@ opening the first frame (e.g. open a connection to an X server).")
881 881
882 (run-hooks 'before-init-hook) 882 (run-hooks 'before-init-hook)
883 883
884 (if (daemonp) 884 ;; Under X Window, this creates the X frame and deletes the terminal frame.
885 ;; Just start the server here, no need to run 885 (unless (daemonp)
886 ;; `frame-initialize', it deals with creating a frame and
887 ;; setting the parameters for the initial frame, we don't need
888 ;; any oxof those.
889 (server-start)
890 ;; Under X Window, this creates the X frame and deletes the terminal frame.
891 (frame-initialize)) 886 (frame-initialize))
892 887
893 ;; Turn off blinking cursor if so specified in X resources. This is here 888 ;; Turn off blinking cursor if so specified in X resources. This is here
@@ -1224,6 +1219,13 @@ opening the first frame (e.g. open a connection to an X server).")
1224 ;; If -batch, terminate after processing the command options. 1219 ;; If -batch, terminate after processing the command options.
1225 (if noninteractive (kill-emacs t)) 1220 (if noninteractive (kill-emacs t))
1226 1221
1222 ;; In daemon mode, start the server to allow clients to connect.
1223 ;; This is done after loading the user's init file and after
1224 ;; processing all command line arguments to allow e.g. `server-name'
1225 ;; to be changed before the server starts.
1226 (when (daemonp)
1227 (server-start))
1228
1227 ;; Run emacs-session-restore (session management) if started by 1229 ;; Run emacs-session-restore (session management) if started by
1228 ;; the session manager and we have a session manager connection. 1230 ;; the session manager and we have a session manager connection.
1229 (if (and (boundp 'x-session-previous-id) 1231 (if (and (boundp 'x-session-previous-id)