From 46458d8960e8a8995a22942a9ba97754d8defbcb Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sat, 21 Mar 2015 13:12:38 +0900 Subject: [PATCH] emacs.el: Set server-use-tcp to t in cygwin environment to avoid the situation where server-running-p stops forever --- emacs.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emacs.el b/emacs.el index 48a6a21..f80e9cd 100644 --- a/emacs.el +++ b/emacs.el @@ -940,6 +940,11 @@ IF OK-IF-ALREADY-EXISTS is true force download." (setq server-name (concat "server" (number-to-string (emacs-pid)))) + ;; In Cygwin Environment `server-runnning-p' stops when server-use-tcp is nil + (when (eq system-type + 'cygwin) + (setq server-use-tcp t)) + (defun my-construct-emacsclient-editor-command () "Construct and return command in a string to connect to current Emacs server." (if server-use-tcp