clarified name space: no theory qualifier here --- treat like global datatype constructors;
authorwenzelm
Mon, 16 Sep 2024 18:59:39 +0200
changeset 80887 c012dfcab50f
parent 80886 5d562dd387ae
child 80888 c5ea0cb4dd91
clarified name space: no theory qualifier here --- treat like global datatype constructors;
src/Pure/Thy/term_style.ML
--- a/src/Pure/Thy/term_style.ML	Mon Sep 16 15:49:36 2024 +0200
+++ b/src/Pure/Thy/term_style.ML	Mon Sep 16 18:59:39 2024 +0200
@@ -25,7 +25,8 @@
 val get_data = Data.get o Proof_Context.theory_of;
 
 fun setup binding style thy =
-  Data.map (#2 o Name_Space.define (Context.Theory thy) true (binding, style)) thy;
+  let val context = Name_Space.map_naming (K Name_Space.global_naming) (Context.Theory thy)
+  in Data.map (#2 o Name_Space.define context true (binding, style)) thy end;
 
 
 (* style parsing *)