From e08b6bc31dba3f6e0964a4dfbf9b0205d468e730 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Wed, 2 Sep 2020 11:53:07 +0200 Subject: [PATCH] Comment on our check for whether the server is already running In a nutshell: it might be redundant, but we keep it nevertheless. --- init.el | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/init.el b/init.el index 97925dd..0935332 100644 --- a/init.el +++ b/init.el @@ -272,6 +272,15 @@ ;; Start Server when not running already + ;; The following condition should actually always be false, since we have + ;; neither loaded the server package yet nor have explicitly started the + ;; server process. Also the --daemon command line switches will start the + ;; server only later, after initialization (and they do so unconditionally, + ;; thus restarting the server we have started here). However, for robustness, + ;; we keep the condition nevertheless, since when a server process is already + ;; present, we really don't have to do anything. Furthermore, calling + ;; `db/run-init' again in a running Emacs will not restart the server (but + ;; then, why whould one want to do this?). (unless (and (boundp 'server-process) server-process) (require 'server)