aboutsummaryrefslogtreecommitdiff
path: root/generic/proof-script.el
diff options
context:
space:
mode:
authorPierre Courtieu2015-10-12 20:49:05 +0200
committerPierre Courtieu2015-10-12 20:49:05 +0200
commit14b8d0e24ef48032885018b4020969593477ee26 (patch)
tree9e9b6d76aee7fc03659cf5149e8a5039129818bf /generic/proof-script.el
parent6effc3a06b96a791805d69c7dd82ef59349abf26 (diff)
proof-assert-command-hook added + Auto adjust width in coq mode.
This hook was missing, it allows to send complete commands before the (set of) command(s) sent by the user. It shall be used when proof-shell-insert-hook cannot be used (because of multiple prompts appearing).
Diffstat (limited to 'generic/proof-script.el')
-rw-r--r--generic/proof-script.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/generic/proof-script.el b/generic/proof-script.el
index fbd8c2b1..338318e7 100644
--- a/generic/proof-script.el
+++ b/generic/proof-script.el
@@ -1912,6 +1912,7 @@ Assumes that point is at the end of a command."
(setq semis (cdr semis)))
(if (null semis) ; maybe inside a string or something.
(error "I can't find any complete commands to process!"))
+ (run-hooks 'proof-assert-command-hook) ;; sneak commands (real ones with a prompt)
(proof-assert-semis semis displayflags)))
(defun proof-assert-electric-terminator ()