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

View File

@ -87,13 +87,14 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defun ghc-get-process (cpro name buf)
(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)))
(t cpro))))
(defun ghc-start-process (name buf)
(let* ((process-connection-type nil) ;; using PIPE due to ^D