src/Pure/ProofGeneral/proof_general_pgip.ML
changeset 23913 fcfacb6670ed
parent 23884 1d39ec4fe73f
child 24067 69b51bc5ce06
equal deleted inserted replaced
23912:039ae566a4a2 23913:fcfacb6670ed
   355 fun proper_inform_file_processed path state =
   355 fun proper_inform_file_processed path state =
   356   let val name = thy_name path in
   356   let val name = thy_name path in
   357     if Toplevel.is_toplevel state andalso ThyInfo.known_thy name then
   357     if Toplevel.is_toplevel state andalso ThyInfo.known_thy name then
   358      (ThyInfo.touch_child_thys name;
   358      (ThyInfo.touch_child_thys name;
   359       ThyInfo.pretend_use_thy_only name handle ERROR msg =>
   359       ThyInfo.pretend_use_thy_only name handle ERROR msg =>
   360        (warning msg; warning ("Failed to register theory: " ^ quote name);
   360        (warning (cat_lines [msg, "Failed to register theory: " ^ quote name]);
   361         tell_file_retracted true (Path.base path)))
   361         tell_file_retracted true (Path.base path)))
   362     else raise Toplevel.UNDEF
   362     else raise Toplevel.UNDEF
   363   end;
   363   end;
   364 
   364 
   365 
   365