Browse Source

emacs.el: Set server-use-tcp to t in cygwin environment

to avoid the situation where server-running-p stops forever
pull/15/head
10sr 9 years ago
parent
commit
46458d8960
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      emacs.el

+ 5
- 0
emacs.el View File

@@ -940,6 +940,11 @@ IF OK-IF-ALREADY-EXISTS is true force download."
(setq server-name (concat "server" (setq server-name (concat "server"
(number-to-string (emacs-pid)))) (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 () (defun my-construct-emacsclient-editor-command ()
"Construct and return command in a string to connect to current Emacs server." "Construct and return command in a string to connect to current Emacs server."
(if server-use-tcp (if server-use-tcp


Loading…
Cancel
Save