equal
deleted
inserted
replaced
544 val theory' = theory |
544 val theory' = theory |
545 |> UpdateTime.put update_time |
545 |> UpdateTime.put update_time |
546 |> Present.begin_theory update_time dir uses; |
546 |> Present.begin_theory update_time dir uses; |
547 |
547 |
548 val uses_now = map_filter (fn (x, true) => SOME x | _ => NONE) uses; |
548 val uses_now = map_filter (fn (x, true) => SOME x | _ => NONE) uses; |
549 val ((), theory'') = |
549 val theory'' = |
550 ML_Context.pass_context (Context.Theory theory') (List.app (load_file false)) uses_now |
550 Context.theory_map (ML_Context.exec (fn () => List.app (load_file false) uses_now)) theory'; |
551 ||> Context.the_theory; |
|
552 in theory'' end; |
551 in theory'' end; |
553 |
552 |
554 fun end_theory theory = |
553 fun end_theory theory = |
555 let |
554 let |
556 val name = Context.theory_name theory; |
555 val name = Context.theory_name theory; |