src/Pure/theory.ML
changeset 33168 853493e5d5d4
parent 33159 369da293bbd4
child 33173 b8ca12f6681a
--- a/src/Pure/theory.ML	Sun Oct 25 19:18:59 2009 +0100
+++ b/src/Pure/theory.ML	Sun Oct 25 19:19:29 2009 +0100
@@ -141,7 +141,12 @@
   let
     val thy = Context.begin_thy Syntax.pp_global name imports;
     val wrappers = begin_wrappers thy;
-  in thy |> Sign.local_path |> apply_wrappers wrappers end;
+  in
+    thy
+    |> Sign.local_path
+    |> Sign.map_naming (Name_Space.set_theory_name name)
+    |> apply_wrappers wrappers
+  end;
 
 fun end_theory thy =
   thy |> apply_wrappers (end_wrappers thy) |> Context.finish_thy;