diff options
author | David Aspinall <da@inf.ed.ac.uk> | 2000-07-19 15:51:33 +0000 |
---|---|---|
committer | David Aspinall <da@inf.ed.ac.uk> | 2000-07-19 15:51:33 +0000 |
commit | 74395a1fcb57bc1e0854ed9284714d2e216c7b50 (patch) | |
tree | 04dc620500d751d5315a5eb8bbbb975dec92b289 /isa | |
parent | d83126ec7b57c1b7f54d8b937925f9b24ae388f0 (diff) |
experiments with theorem dependencies
Diffstat (limited to 'isa')
-rw-r--r-- | isa/depends.ML | 8 | ||||
-rw-r--r-- | isa/isa.el | 5 |
2 files changed, 9 insertions, 4 deletions
diff --git a/isa/depends.ML b/isa/depends.ML index a8b45d2c..d55b7552 100644 --- a/isa/depends.ML +++ b/isa/depends.ML @@ -60,12 +60,12 @@ fun thm_deps thms = fun new_thm_deps thms = let - val _ = print "Proof General, the theorem dependencies are: "; + val header = "Proof General, the theorem dependencies are: \""; val gra = map snd (Symtab.dest (fst (foldl make_deps_graph ((Symtab.empty, []), map (#der o rep_thm) thms)))); - fun printname s = (print s; print " "); - val _ = seq printname (foldl (op@) ([],(map #parents gra))); - in writeln "" end; + val deps = foldl (op@) ([],(map #parents gra)) + val msg = header ^ (space_implode " " deps) ^ "\"" + in writeln msg end; val old_qed = qed; @@ -211,6 +211,11 @@ and script mode." ;; Some messages delimited by eager annotations proof-shell-clear-response-regexp "Proof General, please clear the response buffer." proof-shell-clear-goals-regexp "Proof General, please clear the goals buffer." + (setq proof-shell-theorem-dependency-list-regexp "Proof General, the theorem dependencies are: \"\\([^\"]*\\)\"") + + ;; FIONA! Add something here to set + ;; proof-shell-theorem-dependency-list-regexp + ;; to something to match from Isabelle output ;; Dirty hack to allow font-locking for output based on hidden ;; annotations, see isa-output-font-lock-keywords-1 |