add constants: set Markup.theory_nameN in tags;
authorwenzelm
Fri, 23 May 2008 21:20:26 +0200
changeset 26978 fd4b4ecf935e
parent 26977 e736139b553d
child 26979 c58778bdf146
add constants: set Markup.theory_nameN in tags;
src/Pure/sign.ML
--- a/src/Pure/sign.ML	Fri May 23 21:18:47 2008 +0200
+++ b/src/Pure/sign.ML	Fri May 23 21:20:26 2008 +0200
@@ -622,9 +622,10 @@
         val T' = Logic.varifyT T;
       in ((c, T'), (c', T', mx), Const (full_c, T)) end;
     val args = map prep raw_args;
+    val tags' = tags |> AList.update (op =) (Markup.theory_nameN, Context.theory_name thy);
   in
     thy
-    |> map_consts (fold (Consts.declare authentic (naming_of thy) tags o #1) args)
+    |> map_consts (fold (Consts.declare authentic (naming_of thy) tags' o #1) args)
     |> add_syntax_i (map #2 args)
     |> pair (map #3 args)
   end;