Skip to content

Commit

Permalink
proof-shell: document call graph
Browse files Browse the repository at this point in the history
  • Loading branch information
hendriktews committed Feb 19, 2024
1 parent a6bd818 commit 4814efb
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions generic/proof-shell.el
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,35 @@
;; Mode for buffer which interacts with proof assistant.
;; Includes management of a queue of commands waiting to be sent.
;;
;; A big portion of the code in this file implements the callback
;; function that Emacs calls when output arrives from the proof
;; assistant. This callback implements a major feature of Proof
;; General: Sending one command after the other to the proof assistant
;; and processing/displaying the reply.
;;
;; The following documents the call graph of important functions that
;; contribute to this callback. The entry point is
;; `proof-shell-filter-wrapper', which is configured in
;; `scomint-output-filter-functions'. Sending the next comand to the
;; proof assistant and calling the callbacks of the spans happens in
;; `proof-shell-exec-loop'.
;;
;; proof-shell-filter-wrapper
;; -> proof-shell-filter
;; -> proof-shell-process-urgent-messages
;; -> proof-shell-filter-manage-output
;; -> proof-shell-handle-immediate-output
;; -> proof-shell-exec-loop
;; -> proof-tree-check-proof-finish
;; -> proof-shell-handle-error-or-interrupt
;; -> proof-shell-insert-action-item
;; -> proof-shell-invoke-callback
;; -> proof-release-lock
;; -> proof-shell-handle-delayed-output
;; -> proof-tree-handle-delayed-output
;; -> proof-release-lock
;; -> proof-start-prover-with-priority-items-maybe
;;

;;; Code:

Expand Down

0 comments on commit 4814efb

Please sign in to comment.