equal
deleted
inserted
replaced
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; |