src/Pure/PIDE/command.ML
changeset 65948 de7888573ed7
parent 64677 8dc24130e8fe
child 66167 1bd268ab885c
equal deleted inserted replaced
65947:223fd19ac6b3 65948:de7888573ed7
   199     (fn () =>
   199     (fn () =>
   200       Outer_Syntax.side_comments span |> maps (fn cmt =>
   200       Outer_Syntax.side_comments span |> maps (fn cmt =>
   201         (Thy_Output.output_text st' {markdown = false} (Token.input_of cmt); [])
   201         (Thy_Output.output_text st' {markdown = false} (Token.input_of cmt); [])
   202           handle exn =>
   202           handle exn =>
   203             if Exn.is_interrupt exn then Exn.reraise exn
   203             if Exn.is_interrupt exn then Exn.reraise exn
   204             else Runtime.exn_messages_ids exn)) ();
   204             else Runtime.exn_messages exn)) ();
   205 
   205 
   206 fun report tr m =
   206 fun report tr m =
   207   Toplevel.setmp_thread_position tr (fn () => Output.report [Markup.markup_only m]) ();
   207   Toplevel.setmp_thread_position tr (fn () => Output.report [Markup.markup_only m]) ();
   208 
   208 
   209 fun status tr m =
   209 fun status tr m =
   291 
   291 
   292 fun print_error tr opt_context e =
   292 fun print_error tr opt_context e =
   293   (Toplevel.setmp_thread_position tr o Runtime.controlled_execution opt_context) e ()
   293   (Toplevel.setmp_thread_position tr o Runtime.controlled_execution opt_context) e ()
   294     handle exn =>
   294     handle exn =>
   295       if Exn.is_interrupt exn then Exn.reraise exn
   295       if Exn.is_interrupt exn then Exn.reraise exn
   296       else List.app (Future.error_message (Toplevel.pos_of tr)) (Runtime.exn_messages_ids exn);
   296       else List.app (Future.error_message (Toplevel.pos_of tr)) (Runtime.exn_messages exn);
   297 
   297 
   298 fun print_finished (Print {print_process, ...}) = Lazy.is_finished print_process;
   298 fun print_finished (Print {print_process, ...}) = Lazy.is_finished print_process;
   299 
   299 
   300 fun print_persistent (Print {persistent, ...}) = persistent;
   300 fun print_persistent (Print {persistent, ...}) = persistent;
   301 
   301