Skip to content

Commit

Permalink
insert show proof command on error
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriktews committed Mar 11, 2020
1 parent 58bacd1 commit cd3dba8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions generic/proof-shell.el
Original file line number Diff line number Diff line change
Expand Up @@ -1663,6 +1663,13 @@ by the filter is to send the next command from the queue."
;; sets proof-shell-last-output-kind
(proof-shell-handle-immediate-output cmd start end flags)

;; insert a show proof command to have an up-to-date goals buffer
;; in case of error
(when (eq proof-shell-last-output-kind 'error)
(proof-add-to-priority-queue
(proof-shell-action-list-item
proof-showproof-command 'proof-done-invisible (list 'invisible))))

(unless proof-shell-last-output-kind ; dealt with already
(setq proof-shell-delayed-output-start start)
(setq proof-shell-delayed-output-end end)
Expand Down

0 comments on commit cd3dba8

Please sign in to comment.