equal
deleted
inserted
replaced
479 else emacs_notify ("Proof General, theorem dependencies of " ^ thms ^ " are " ^ deps); |
479 else emacs_notify ("Proof General, theorem dependencies of " ^ thms ^ " are " ^ deps); |
480 |
480 |
481 (* FIXME: check this uses non-transitive closure function here *) |
481 (* FIXME: check this uses non-transitive closure function here *) |
482 fun tell_thm_deps ths = conditional (Output.has_mode thm_depsN) (fn () => |
482 fun tell_thm_deps ths = conditional (Output.has_mode thm_depsN) (fn () => |
483 let |
483 let |
484 val names = filter_out (equal "") (map Thm.name_of_thm ths); |
484 val names = filter_out (equal "") (map PureThy.get_name_hint ths); |
485 val deps = filter_out (equal "") |
485 val deps = filter_out (equal "") |
486 (Symtab.keys (fold Proofterm.thms_of_proof |
486 (Symtab.keys (fold Proofterm.thms_of_proof |
487 (map Thm.proof_of ths) Symtab.empty)); |
487 (map Thm.proof_of ths) Symtab.empty)); |
488 in |
488 in |
489 if null names orelse null deps then () |
489 if null names orelse null deps then () |