+2007-11-07 Andreas Schwab <schwab@suse.de>
+
+ * server.el (server-start): Only register cleanup after server was
+ started.
+
2007-11-06 Michael Albinus <michael.albinus@gmx.de>
* net/tramp.el (top): Don't autoload `tramp-cache-print'.
(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
;; continue standard unloading
nil)
-(add-hook 'kill-emacs-hook (lambda () (server-mode -1))) ;Cleanup upon exit.
(defvar server-unload-function 'server-unload-function)
\f
(provide 'server)