Fix condition as it stop server from loading.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 25 Jun 2011 23:04:25 +0300
changeset 662 81ca1335730a
parent 661 95d6a3c48afd
child 663 1fdbc6490e16
Fix condition as it stop server from loading.
.emacs-my
--- a/.emacs-my	Sat Jun 25 22:55:59 2011 +0300
+++ b/.emacs-my	Sat Jun 25 23:04:25 2011 +0300
@@ -253,7 +253,7 @@
   (require 'server)
   (when (and (= emacs-major-version 23) (>= emacs-minor-version 1) (<= emacs-minor-version 2) (equal window-system 'w32))
     (defun server-ensure-safe-dir (dir) "Noop" t)) ; Suppress error directory ~/.emacs.d/server is unsafe on windows.
-  (unless (or (<= emacs-major-version 22) (server-running-p server-name))
+  (when (or (= emacs-major-version 22) (not (eq (server-running-p server-name) t)))
     (server-start))
   )