diff options
author | David Aspinall <da@inf.ed.ac.uk> | 2009-09-09 21:08:51 +0000 |
---|---|---|
committer | David Aspinall <da@inf.ed.ac.uk> | 2009-09-09 21:08:51 +0000 |
commit | f5cf54710cb0d72eba35a59b1a3e86fb0c56473b (patch) | |
tree | 7d7c613186c9341092a3970502544efba568e97d /generic/proof-config.el | |
parent | c4d3e63e3bdc5041eedf2b9c7fb166963ed4020c (diff) |
p-s-classify-output -> p-s-handle-output, and simplify system-specific hook
Diffstat (limited to 'generic/proof-config.el')
-rw-r--r-- | generic/proof-config.el | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/generic/proof-config.el b/generic/proof-config.el index 4f6d8ece..71a1b7e3 100644 --- a/generic/proof-config.el +++ b/generic/proof-config.el @@ -1683,22 +1683,26 @@ before returning to the top level." :type '(repeat function) :group 'proof-shell) -(defcustom proof-shell-classify-output-system-specific nil +(defcustom proof-shell-handle-output-system-specific nil "Set this variable to handle system specific output. -Errors, start of proofs, abortions of proofs and completions of -proofs are recognised in the function `proof-shell-classify-output'. -All other output from the proof engine is simply reported to the -user in the RESPONSE buffer. - -To catch further special cases, set this variable to a pair of -functions '(condf . actf). Both are given (cmd string) as arguments. -`cmd' is a string containing the currently processed command. -`string' is the response from the proof system. To change the -behaviour of `proof-shell-classify-output', (condf cmd string) must -return a non-nil value. Then (actf cmd string) is invoked. - -See the documentation of `proof-shell-classify-output' for the required -output format." +Errors and interrupts are recognised in the function +`proof-shell-handle-immediate-output'. Later output is +handled by `proof-shell-handle-delayed-output', which +displays messages to the user in *goals* and *response* +buffers. + +This hook can run between the two stages to take some effect. + +It should be a function which is passed (cmd string) as +arguments, where `cmd' is a string containing the currently +processed command and `string' is the response from the proof +system. If action is taken and goals/response display should +be prevented, the function should update the variable +`proof-shell-last-output-kind' to some non-nil symbol. + +The symbol will be compared against standard ones, see documentation +of `proof-shell-last-output-kind'. A suggested canonical non-standard +symbol is 'systemspecific." :type '(repeat function) :group 'proof-shell) |