src/Pure/Tools/isabelle_process.ML
changeset 26053 f8ee5cbb3068
parent 25849 e80056f00b07
child 26208 278f47ae70d1
equal deleted inserted replaced
26052:7d5b3e34a735 26053:f8ee5cbb3068
    94       (case try XML.tree_of_string (XML.element "message" [] [raw_txt]) of
    94       (case try XML.tree_of_string (XML.element "message" [] [raw_txt]) of
    95         NONE => (raw_txt, Position.none)
    95         NONE => (raw_txt, Position.none)
    96       | SOME xml => (XML.plain_content xml, the_default Position.none (get_pos xml)))
    96       | SOME xml => (XML.plain_content xml, the_default Position.none (get_pos xml)))
    97       |>> translate_string (fn c => if c = STX then DEL else c);
    97       |>> translate_string (fn c => if c = STX then DEL else c);
    98     val props =
    98     val props =
    99       (case Position.properties_of (Position.thread_data ()) of
    99       Position.properties_of (Position.thread_data ())
   100         [] => Position.properties_of pos
   100       |> Position.default_properties pos;
   101       | props => props);
       
   102   in Output.writeln_default (special ch ^ print_props props ^ txt ^ special_end) end;
   101   in Output.writeln_default (special ch ^ print_props props ^ txt ^ special_end) end;
   103 
   102 
   104 fun init_message () =
   103 fun init_message () =
   105   let
   104   let
   106     val pid = ("pid", string_of_pid (Posix.ProcEnv.getpid ()));
   105     val pid = ("pid", string_of_pid (Posix.ProcEnv.getpid ()));