simplified position_props, always include line/file fields;
authorwenzelm
Thu, 03 Jan 2008 22:25:16 +0100
changeset 25820 8228b198c49e
parent 25819 e6feb08b7f4b
child 25821 2e565f8275f5
simplified position_props, always include line/file fields;
src/Pure/Tools/isabelle_process.ML
--- a/src/Pure/Tools/isabelle_process.ML	Thu Jan 03 22:25:15 2008 +0100
+++ b/src/Pure/Tools/isabelle_process.ML	Thu Jan 03 22:25:16 2008 +0100
@@ -53,17 +53,12 @@
 val special_sep = special ",";
 val special_end = special ".";
 
-fun message_props () =
-  let
-    val thread_props = Toplevel.thread_properties ();
-    val props =
-      (case AList.lookup (op =) thread_props Markup.idN of
-        SOME id => [(Markup.idN, id)]
-      | NONE => Position.properties_of (#1 (Position.of_properties thread_props)));
+fun position_props () =
+  let val props = Position.properties_of (Position.thread_data ())
   in implode (map (fn (x, y) => x ^ "=" ^ y ^ special_sep ^ "\n") props) end;
 
 fun output ch markup txt =
-  Output.writeln_default (special ch ^ message_props () ^ Markup.enclose markup txt ^ special_end);
+  Output.writeln_default (special ch ^ position_props () ^ Markup.enclose markup txt ^ special_end);
 
 in