begin_theory: set theory_name here;
authorwenzelm
Sun, 25 Oct 2009 19:19:29 +0100
changeset 33168 853493e5d5d4
parent 33167 f02b804305d6
child 33169 3012726e9929
begin_theory: set theory_name here;
src/Pure/theory.ML
--- 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;