src/Pure/Thy/thy_info.ML
changeset 26455 1757a6e049f4
parent 26425 6561665c5cb1
child 26494 6816ca8b48ef
equal deleted inserted replaced
26454:57923fdab83b 26455:1757a6e049f4
   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;