From: Andreas Schwab Date: Wed, 7 Nov 2007 00:27:13 +0000 (+0000) Subject: (server-start): Only register cleanup after server was X-Git-Tag: emacs-pretest-23.0.90~9850 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=1d515b422c71737385f6d037ace407962edb67a3;p=emacs.git (server-start): Only register cleanup after server was started. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8ad799fa437..0b875a486cd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2007-11-07 Andreas Schwab + + * server.el (server-start): Only register cleanup after server was + started. + 2007-11-06 Michael Albinus * net/tramp.el (top): Don't autoload `tramp-cache-print'. diff --git a/lisp/server.el b/lisp/server.el index a1d34eb8128..bbebe784636 100644 --- a/lisp/server.el +++ b/lisp/server.el @@ -483,6 +483,7 @@ kill any existing server communications subprocess." (add-hook 'delete-frame-functions 'server-handle-delete-frame) (add-hook 'kill-buffer-query-functions 'server-kill-buffer-query-function) (add-hook 'kill-emacs-query-functions 'server-kill-emacs-query-function) + (add-hook 'kill-emacs-hook (lambda () (server-mode -1))) ;Cleanup upon exit. (setq server-process (apply #'make-network-process :name server-name @@ -1293,7 +1294,6 @@ only these files will be asked to be saved." ;; continue standard unloading nil) -(add-hook 'kill-emacs-hook (lambda () (server-mode -1))) ;Cleanup upon exit. (defvar server-unload-function 'server-unload-function) (provide 'server)