Skip to content

Commit 9a807f1

Browse files
committed
Merge pull request #452 from Fanael/master
Cleanup following #449
2 parents ce64899 + 4a7fb9a commit 9a807f1

File tree

2 files changed

+4
-15
lines changed

2 files changed

+4
-15
lines changed

Makefile

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ GIT_VERSION = $(shell git describe --tags --match 'v[0-9]*' --long --dirty | sed
33

44
INSTALL_INFO = install-info
55
EMACS = emacs
6-
EFLAGS = --eval "(if (< emacs-major-version 24) \
7-
(progn (add-to-list 'load-path (expand-file-name \"tests/compat\")) \
8-
(setq byte-compile-warnings '(not cl-functions))))" \
6+
EFLAGS = --eval "(when (< emacs-major-version 24) \
7+
(add-to-list 'load-path (expand-file-name \"tests/compat\")) \
8+
(setq byte-compile-warnings '(not cl-functions)))" \
99
--eval '(setq byte-compile-error-on-warn t)'
1010

1111
BATCH = $(EMACS) $(EFLAGS) --batch -Q -L .

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)