src/Pure/PIDE/command.ML
changeset 66167 1bd268ab885c
parent 65948 de7888573ed7
child 66379 6392766f3c25
equal deleted inserted replaced
66166:c88d1c36c9c3 66167:1bd268ab885c
   262         val tr =
   262         val tr =
   263           Position.setmp_thread_data (Position.id_only (Document_ID.print exec_id))
   263           Position.setmp_thread_data (Position.id_only (Document_ID.print exec_id))
   264             (fn () =>
   264             (fn () =>
   265               read keywords thy master_dir init blobs_info span |> Toplevel.exec_id exec_id) ();
   265               read keywords thy master_dir init blobs_info span |> Toplevel.exec_id exec_id) ();
   266       in eval_state keywords span tr eval_state0 end;
   266       in eval_state keywords span tr eval_state0 end;
   267   in Eval {exec_id = exec_id, eval_process = Lazy.lazy process} end;
   267   in Eval {exec_id = exec_id, eval_process = Lazy.lazy_name "Command.eval" process} end;
   268 
   268 
   269 end;
   269 end;
   270 
   270 
   271 
   271 
   272 (* print *)
   272 (* print *)
   320             else print_error tr opt_context (fn () => print_fn tr st')
   320             else print_error tr opt_context (fn () => print_fn tr st')
   321           end;
   321           end;
   322       in
   322       in
   323         Print {
   323         Print {
   324           name = name, args = args, delay = delay, pri = pri, persistent = persistent,
   324           name = name, args = args, delay = delay, pri = pri, persistent = persistent,
   325           exec_id = exec_id, print_process = Lazy.lazy process}
   325           exec_id = exec_id, print_process = Lazy.lazy_name "Command.print" process}
   326       end;
   326       end;
   327 
   327 
   328     fun bad_print name args exn =
   328     fun bad_print name args exn =
   329       make_print name args {delay = NONE, pri = 0, persistent = false,
   329       make_print name args {delay = NONE, pri = 0, persistent = false,
   330         strict = false, print_fn = fn _ => fn _ => Exn.reraise exn};
   330         strict = false, print_fn = fn _ => fn _ => Exn.reraise exn};