target_abbrev: internal mode for abbrevs;
authorwenzelm
Wed, 13 Dec 2006 15:47:34 +0100
changeset 21824 153fad1e7318
parent 21823 7d4debbb1abf
child 21825 6f6bf23f4c1e
target_abbrev: internal mode for abbrevs; tuned;
src/Pure/Isar/proof_context.ML
--- a/src/Pure/Isar/proof_context.ML	Wed Dec 13 15:47:33 2006 +0100
+++ b/src/Pure/Isar/proof_context.ML	Wed Dec 13 15:47:34 2006 +0100
@@ -290,7 +290,7 @@
     val do_abbrevs = abbrevs andalso not (Output.has_mode "no_abbrevs");
     val t' = t
       |> do_abbrevs ? rewrite_term true thy (Consts.abbrevs_of consts (! print_mode @ [""]))
-      |> do_abbrevs ? rewrite_term false thy (Consts.abbrevs_of consts [#1 Syntax.internal_mode])
+      |> do_abbrevs ? rewrite_term false thy (Consts.abbrevs_of consts [Syntax.internalM])
       |> Sign.extern_term (Consts.extern_early consts) thy
       |> LocalSyntax.extern_term syntax;
   in Sign.pretty_term' ctxt (LocalSyntax.syn_of syntax) (Consts.extern consts) t' end;
@@ -910,12 +910,12 @@
 
 fun target_abbrev prmode ((c, mx), rhs) phi =
   let
-    val mode = #1 prmode;
     val c' = Morphism.name phi c;
     val rhs' = Morphism.term phi rhs;
     val arg' = (c', rhs');
   in
-    Context.mapping_result (Sign.add_abbrev mode arg') (add_abbrev mode arg')
+    Context.mapping_result
+      (Sign.add_abbrev Syntax.internalM arg') (add_abbrev Syntax.internalM arg')
     #-> (fn (lhs, _) =>
       Term.equiv_types (rhs, rhs') ? target_notation prmode [(lhs, mx)] Morphism.identity)
   end;