Revert "don't silently ignore case when ghc process is already running in ghc-with-process"
This reverts commit ac31e6edc2
.
This commit is contained in:
parent
be2b3f0ea7
commit
475b2ea02e
@ -18,8 +18,7 @@
|
||||
(defvar-local ghc-process-original-buffer nil)
|
||||
(defvar-local ghc-process-original-file nil)
|
||||
(defvar-local ghc-process-callback nil)
|
||||
(defvar-local ghc-process-hook nil
|
||||
"Hook that will be called upon successfull completion of ghc-mod command.")
|
||||
(defvar-local ghc-process-hook nil)
|
||||
|
||||
(defvar ghc-command "ghc-mod")
|
||||
|
||||
@ -31,10 +30,8 @@
|
||||
(defun ghc-with-process (cmd callback &optional hook1 hook2)
|
||||
(unless ghc-process-process-name
|
||||
(setq ghc-process-process-name (ghc-get-project-root)))
|
||||
(if ghc-process-running
|
||||
(error "ghc process already running")
|
||||
(progn
|
||||
(when ghc-process-running t)
|
||||
(when (and ghc-process-process-name (not ghc-process-running))
|
||||
(setq ghc-process-running t)
|
||||
(if hook1 (funcall hook1))
|
||||
(let* ((cbuf (current-buffer))
|
||||
(name ghc-process-process-name)
|
||||
@ -52,7 +49,7 @@
|
||||
(when ghc-debug
|
||||
(ghc-with-debug-buffer
|
||||
(insert (format "%% %s" cmd))))
|
||||
pro))))))
|
||||
pro)))))
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user