diff options
author | David Aspinall <da@inf.ed.ac.uk> | 2010-10-01 15:11:54 +0000 |
---|---|---|
committer | David Aspinall <da@inf.ed.ac.uk> | 2010-10-01 15:11:54 +0000 |
commit | 62fb902e33e4e59a974bfb976f45b4648320d4e8 (patch) | |
tree | 3151df2d425553e102547a0eb96d9cf4550315fa /coq | |
parent | 1604db92ae0d21b58caafb481aef73570056a122 (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.el | 16 |
1 files changed, 1 insertions, 15 deletions
@@ -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) ;; |