[Emacs] Handle the case where server is in :other state

This commit is contained in:
Ivan Malison 2018-02-22 02:00:16 -08:00
parent 3f9b828d4c
commit f1ea2b4fde
No known key found for this signature in database
GPG Key ID: 62530EFBE99DC2F8

View File

@ -1424,7 +1424,7 @@ The file server file for this emacs instance no longer exists.")
(let ((server-dir (if server-use-tcp server-auth-dir server-socket-dir)))
(expand-file-name server-name server-dir)))
(setq server-use-tcp t)
(unless (server-running-p) (server-start))
(unless (equal nil (server-running-p)) (server-start))
(run-with-timer 0 60 'imalison:make-main-emacs-server)))
#+END_SRC
** list-environment