src/Pure/Isar/proof_context.ML
changeset 22587 5454b06320fb
parent 22358 4d8a9e3a29f8
child 22670 c803b2696ada
equal deleted inserted replaced
22586:d2008c5f8d99 22587:5454b06320fb
   288 fun pretty_term' abbrevs ctxt t =
   288 fun pretty_term' abbrevs ctxt t =
   289   let
   289   let
   290     val thy = theory_of ctxt;
   290     val thy = theory_of ctxt;
   291     val syntax = syntax_of ctxt;
   291     val syntax = syntax_of ctxt;
   292     val consts = consts_of ctxt;
   292     val consts = consts_of ctxt;
   293     val do_abbrevs = abbrevs andalso not (Output.has_mode "no_abbrevs");
   293     val do_abbrevs = abbrevs andalso not (print_mode_active "no_abbrevs");
   294     val t' = t
   294     val t' = t
   295       |> do_abbrevs ? rewrite_term true thy (Consts.abbrevs_of consts (! print_mode @ [""]))
   295       |> do_abbrevs ? rewrite_term true thy (Consts.abbrevs_of consts (! print_mode @ [""]))
   296       |> do_abbrevs ? rewrite_term false thy (Consts.abbrevs_of consts [Syntax.internalM])
   296       |> do_abbrevs ? rewrite_term false thy (Consts.abbrevs_of consts [Syntax.internalM])
   297       |> Sign.extern_term (Consts.extern_early consts) thy
   297       |> Sign.extern_term (Consts.extern_early consts) thy
   298       |> LocalSyntax.extern_term syntax;
   298       |> LocalSyntax.extern_term syntax;