aboutsummaryrefslogtreecommitdiffhomepage
path: root/coq
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2010-10-01 15:11:54 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2010-10-01 15:11:54 +0000
commit62fb902e33e4e59a974bfb976f45b4648320d4e8 (patch)
tree3151df2d425553e102547a0eb96d9cf4550315fa /coq
parent1604db92ae0d21b58caafb481aef73570056a122 (diff)
coq-allow-highlight-error: remove this setting, now proof-shell-error-or-interrupt-hook is only invoked for plain script commands.
Diffstat (limited to 'coq')
-rw-r--r--coq/coq.el16
1 files changed, 1 insertions, 15 deletions
diff --git a/coq/coq.el b/coq/coq.el
index 65872ed9..bfc3ed4c 100644
--- a/coq/coq.el
+++ b/coq/coq.el
@@ -1319,24 +1319,10 @@ buffer."
(sit-for 5) ;; da: this was 20 but seemed obnoxiously long?
(span-delete sp))))))))
-(defvar coq-allow-highlight-error t
- "Internal variable. Do not use as configuration variable.")
-
-;; if a command is sent to coq without being in the script, then don't
-;; highlight the error. Remark: `action' and `string' are known by
-;; `proof-shell-insert-hook', but not by
-;; `proof-shell-handle-error-or-interrupt-hook'
-(defun coq-decide-highlight-error ()
- (setq coq-allow-highlight-error
- (not (with-no-warnings ;; Dynamic scope of `action'
- (eq action 'proof-done-invisible)))))
-
(defun coq-highlight-error-hook ()
- (if coq-allow-highlight-error (coq-highlight-error t t)))
+ (coq-highlight-error t t))
-;; We need this two hooks to highlight only when scripting
(add-hook 'proof-shell-handle-error-or-interrupt-hook 'coq-highlight-error-hook t)
-(add-hook 'proof-shell-insert-hook 'coq-decide-highlight-error t)
;;