src/Pure/Isar/isar_syn.ML
changeset 44186 806f0ec1a43d
parent 43947 9b00f09f7721
child 44187 88d770052bac
--- a/src/Pure/Isar/isar_syn.ML	Sat Aug 13 20:20:36 2011 +0200
+++ b/src/Pure/Isar/isar_syn.ML	Sat Aug 13 20:41:29 2011 +0200
@@ -30,9 +30,10 @@
   Outer_Syntax.command "theory" "begin theory" (Keyword.tag_theory Keyword.thy_begin)
     (Thy_Header.args >> (fn (name, imports, uses) =>
       Toplevel.print o
-        Toplevel.init_theory NONE name
-          (fn master =>
-            Thy_Info.toplevel_begin_theory master name imports (map (apfst Path.explode) uses))));
+        Toplevel.init_theory name
+          (fn () =>
+            Thy_Info.toplevel_begin_theory (Thy_Load.get_master_path ())
+              name imports (map (apfst Path.explode) uses))));
 
 val _ =
   Outer_Syntax.command "end" "end (local) theory" (Keyword.tag_theory Keyword.thy_end)