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) (defun ghc-get-process (cpro name buf)
(cond (let ((default-directory name))
((not cpro) (cond
(ghc-start-process name buf)) ((not cpro)
((not (eq (process-status cpro) 'run)) (ghc-start-process name buf))
(delete-process cpro) ((not (eq (process-status cpro) 'run))
(ghc-start-process name buf)) (delete-process cpro)
(t cpro))) (ghc-start-process name buf))
(t cpro))))
(defun ghc-start-process (name buf) (defun ghc-start-process (name buf)
(let* ((process-connection-type nil) ;; using PIPE due to ^D (let* ((process-connection-type nil) ;; using PIPE due to ^D