ensuring that ghc-mod is executed on the root dir.
This commit is contained in:
parent
0aa3655e08
commit
ad5a343d2e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user