--- a/src/Pure/Isar/locale.ML Sat Jun 08 11:32:38 2024 +0200
+++ b/src/Pure/Isar/locale.ML Sat Jun 08 11:47:48 2024 +0200
@@ -199,7 +199,8 @@
(Args.theory -- Scan.lift Parse.embedded_position >>
(ML_Syntax.print_string o uncurry check)));
-fun extern thy = Name_Space.extern (Proof_Context.init_global thy) (locale_space thy);
+fun extern thy =
+ Name_Space.extern_generic (Context.Theory thy) (locale_space thy);
fun markup_extern ctxt =
Name_Space.markup_extern ctxt (locale_space (Proof_Context.theory_of ctxt));