src/Pure/tactical.ML
changeset 56493 1f660d858a75
parent 56491 a8ccf3d6a6e4
child 59582 0fbed69ff081
equal deleted inserted replaced
56492:29a1d14b944c 56493:1f660d858a75
   220 
   220 
   221 (*Extract from a tactic, a thm->thm seq function that handles tracing*)
   221 (*Extract from a tactic, a thm->thm seq function that handles tracing*)
   222 fun tracify flag tac st =
   222 fun tracify flag tac st =
   223   if !flag andalso not (!suppress_tracing) then
   223   if !flag andalso not (!suppress_tracing) then
   224     (tracing (Pretty.string_of (Pretty.chunks
   224     (tracing (Pretty.string_of (Pretty.chunks
   225         (Goal_Display.pretty_goals_without_context st @
   225         (Goal_Display.pretty_goals (Syntax.init_pretty_global (Thm.theory_of_thm st)) st @
   226           [Pretty.str "** Press RETURN to continue:"])));
   226           [Pretty.str "** Press RETURN to continue:"])));
   227      exec_trace_command flag (tac, st))
   227      exec_trace_command flag (tac, st))
   228   else tac st;
   228   else tac st;
   229 
   229 
   230 (*Create a tactic whose outcome is given by seqf, handling TRACE_EXIT*)
   230 (*Create a tactic whose outcome is given by seqf, handling TRACE_EXIT*)