Skip to content

Commit 459964b

Browse files
committed
Use haskell-compat, which already provides process-live-p
1 parent ce64899 commit 459964b

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

haskell-process.el

+1-12
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
(require 'cl-lib)
2727
(require 'json)
2828
(require 'url-util)
29+
(require 'haskell-compat)
2930
(require 'haskell-session)
3031
(require 'haskell-customize)
3132
(require 'haskell-str)
@@ -217,18 +218,6 @@ the response."
217218
(haskell-process-send-string (car state)
218219
(cdr state))))))
219220

220-
(eval-when-compile
221-
;; Emacs23 does not have process-live-p. That is easy to define.
222-
(unless (fboundp 'process-live-p)
223-
(defun process-live-p (process)
224-
"Returns non-nil if PROCESS is alive.
225-
A process is considered alive if its status is `run', `open',
226-
`listen', `connect' or `stop'. Value is nil if PROCESS is not a
227-
process."
228-
(and (processp process)
229-
(memq (process-status process)
230-
'(run open listen connect stop))))))
231-
232221

233222
(defun haskell-process-queue-command (process command)
234223
"Add a command to the process command queue."

0 commit comments

Comments
 (0)