From b01ce5059d9e6823a175188400f71f75b802a958 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Mon, 7 Sep 2020 16:30:54 +0100 Subject: Debug defensive call to (server-start) I was previously relying on the variable `server-process` being set, but this only resulted in false-negatives and broken initializations. This should make my Emacs initialization more stable. --- emacs/.emacs.d/wpc/wpc-misc.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emacs/.emacs.d/wpc/wpc-misc.el') diff --git a/emacs/.emacs.d/wpc/wpc-misc.el b/emacs/.emacs.d/wpc/wpc-misc.el index 11ef17cc4f6c..8ef3f2f63ab2 100644 --- a/emacs/.emacs.d/wpc/wpc-misc.el +++ b/emacs/.emacs.d/wpc/wpc-misc.el @@ -303,7 +303,7 @@ (paradox-enable)) ;; Start the Emacs server -(when (not server-process) +(when (not (server-running-p)) (server-start)) (provide 'wpc-misc) -- cgit 1.4.1