diff options
| author | David Aspinall | 2010-10-01 15:38:28 +0000 |
|---|---|---|
| committer | David Aspinall | 2010-10-01 15:38:28 +0000 |
| commit | 0bb355a0ed7db7130758a5e9685ee61ede255c2a (patch) | |
| tree | 65403c6f93b9afb6dc50c1b183d5e88841c50970 /generic | |
| parent | dfff8b899a1aec4236368da71cca2e590c7f03e0 (diff) | |
Add explicit 'invisible flag on the action list for invisible commands.
This means that certain display actions will always be avoided for non-scripting
commands (i.e., hints, anything in `proof-shell-error-or-interrupt-hook').
Diffstat (limited to 'generic')
| -rw-r--r-- | generic/proof-shell.el | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/generic/proof-shell.el b/generic/proof-shell.el index aaff5673..f02cca96 100644 --- a/generic/proof-shell.el +++ b/generic/proof-shell.el @@ -44,6 +44,7 @@ which is the queue of things to do. The display flags are set for non-scripting commands or for when scripting should not bother the user. They may include + 'invisible non-script command (`proof-shell-invisible-command') 'no-response-display do not display messages in *response* buffer 'no-error-display do not display errors/take error action 'no-goals-display do not goals in *goals* buffer @@ -600,8 +601,7 @@ This is a subroutine of `proof-shell-handle-error-or-interrupt'. Must be called with proof shell buffer current. This function invokes `proof-shell-handle-error-or-interrupt-hook' -unless the FLAGS for the command are non-nil (indicating errors -are ignored somehow)." +unless the FLAGS for the command are non-nil (see `proof-action-list')." (unless proof-shell-quiet-errors (beep)) (let* ((fatalitem (car-safe proof-action-list)) @@ -1594,7 +1594,8 @@ INVISIBLECALLBACK will be invoked after the command has finished, if it is set. It should probably run the hook variables `proof-state-change-hook'. -FLAGS are put onto the If NOERROR is set, surpress usual error action." +FLAGS are additional flags to put onto the `proof-action-list'. +The flag 'invisible is always added to FLAGS." (unless (stringp cmd) (setq cmd (eval cmd))) (if cmd @@ -1617,7 +1618,7 @@ FLAGS are put onto the If NOERROR is set, surpress usual error action." (list (proof-shell-action-list-item cmd callback - flags)))) + (cons 'invisible flags))))) (if wait (proof-shell-wait))))) ;;;###autoload |
