aboutsummaryrefslogtreecommitdiffhomepage
path: root/coq/coq-compile-common.el
diff options
context:
space:
mode:
authorGravatar Hendrik Tews <hendrik@askra.de>2017-01-18 22:05:37 +0100
committerGravatar Hendrik Tews <hendrik@askra.de>2017-01-18 22:05:37 +0100
commit77c3f2eac868f177b73d2aa59b277e40fc48fd0c (patch)
tree249344f814f49c07cf3ac341dee3eefd9b74539e /coq/coq-compile-common.el
parent31a5f3f036d5c15931d7901368b49c60988e9c4e (diff)
split emergency-cleanup to handle interrupts properly (fixes #143)
Split coq-par-emergency-cleanup into two functions, one for reacting on user interrupts and one for cleaning up after compilation errors.
Diffstat (limited to 'coq/coq-compile-common.el')
-rw-r--r--coq/coq-compile-common.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/coq/coq-compile-common.el b/coq/coq-compile-common.el
index af3e70a4..4b0033d1 100644
--- a/coq/coq-compile-common.el
+++ b/coq/coq-compile-common.el
@@ -42,9 +42,9 @@ Must be used together with `coq-seq-disable'."
(add-hook 'proof-shell-extend-queue-hook
'coq-par-preprocess-require-commands)
(add-hook 'proof-shell-signal-interrupt-hook
- 'coq-par-emergency-cleanup)
+ 'coq-par-user-interrupt)
(add-hook 'proof-shell-handle-error-or-interrupt-hook
- 'coq-par-emergency-cleanup))
+ 'coq-par-user-interrupt))
(defun coq-par-disable ()
"Disable parallel compilation.
@@ -52,9 +52,9 @@ Must be used together with `coq-seq-enable'."
(remove-hook 'proof-shell-extend-queue-hook
'coq-par-preprocess-require-commands)
(remove-hook 'proof-shell-signal-interrupt-hook
- 'coq-par-emergency-cleanup)
+ 'coq-par-user-interrupt)
(remove-hook 'proof-shell-handle-error-or-interrupt-hook
- 'coq-par-emergency-cleanup))
+ 'coq-par-user-interrupt))
(defun coq-seq-enable ()
"Enable sequential synchronous compilation.