src/Pure/System/isabelle_process.ML
changeset 57913 8544ef75d1d8
parent 56895 f058120aaad4
child 57916 2c2c24dbf0a4
equal deleted inserted replaced
57912:dd9550f84106 57913:8544ef75d1d8
   106       Message_Channel.send msg_channel (Message_Channel.message name props body);
   106       Message_Channel.send msg_channel (Message_Channel.message name props body);
   107 
   107 
   108     fun standard_message props name body =
   108     fun standard_message props name body =
   109       if forall (fn s => s = "") body then ()
   109       if forall (fn s => s = "") body then ()
   110       else
   110       else
   111         message name
   111         let
   112           (fold_rev Properties.put props (Position.properties_of (Position.thread_data ()))) body;
   112           val props' =
       
   113             (case (Properties.defined props Markup.idN, Position.get_id (Position.thread_data ())) of
       
   114               (false, SOME id') => props @ [(Markup.idN, id')]
       
   115             | _ => props);
       
   116         in message name props' body end;
   113   in
   117   in
   114     Output.status_fn := standard_message [] Markup.statusN;
   118     Output.status_fn := standard_message [] Markup.statusN;
   115     Output.report_fn := standard_message [] Markup.reportN;
   119     Output.report_fn := standard_message [] Markup.reportN;
   116     Output.result_fn :=
   120     Output.result_fn :=
   117       (fn props => fn s => standard_message (props @ serial_props ()) Markup.resultN s);
   121       (fn props => fn s => standard_message (props @ serial_props ()) Markup.resultN s);