Revoked workaround (incompatible with HOL/ex/LocaleTest2.thy).
--- a/src/Pure/Isar/theory_target.ML Tue Oct 28 16:59:02 2008 +0100
+++ b/src/Pure/Isar/theory_target.ML Tue Oct 28 17:53:46 2008 +0100
@@ -186,7 +186,7 @@
fun locale_const (Target {target, is_class, ...}) (prmode as (mode, _)) tags ((c, mx), rhs) phi =
let
- val c' = Morphism.name phi c |> Name.map_name NameSpace.base; (* FIXME !!! *)
+ val c' = Morphism.name phi c;
val rhs' = Morphism.term phi rhs;
val name = Name.name_of c;
val name' = Name.name_of c';