ensuring that ghc-mod is executed on the root dir.

This commit is contained in:
Kazu Yamamoto 2015-09-15 11:31:54 +09:00
parent 0aa3655e08
commit ad5a343d2e
1 changed files with 8 additions and 7 deletions

View File

@ -87,13 +87,14 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun ghc-get-process (cpro name buf)
(cond
((not cpro)
(ghc-start-process name buf))
((not (eq (process-status cpro) 'run))
(delete-process cpro)
(ghc-start-process name buf))
(t cpro)))
(let ((default-directory name))
(cond
((not cpro)
(ghc-start-process name buf))
((not (eq (process-status cpro) 'run))
(delete-process cpro)
(ghc-start-process name buf))
(t cpro))))
(defun ghc-start-process (name buf)
(let* ((process-connection-type nil) ;; using PIPE due to ^D