src/Pure/ProofGeneral/proof_general_pgip.ML
changeset 37953 ddc3b72f9a42
parent 37852 a902f158b4fc
child 37954 a2e73df0b1e0
--- a/src/Pure/ProofGeneral/proof_general_pgip.ML	Sun Jul 25 12:57:29 2010 +0200
+++ b/src/Pure/ProofGeneral/proof_general_pgip.ML	Sun Jul 25 14:41:48 2010 +0200
@@ -224,7 +224,7 @@
   let val name = thy_name path in
     if Toplevel.is_toplevel state andalso Thy_Info.known_thy name then
      (Thy_Info.touch_child_thys name;
-      Thy_Info.register_thy name handle ERROR msg =>
+      Thy_Info.register_thy name (Toplevel.end_theory Position.none state) handle ERROR msg =>
        (warning (cat_lines [msg, "Failed to register theory: " ^ quote name]);
         tell_file_retracted true (Path.base path)))
     else raise Toplevel.UNDEF