src/Pure/General/position.ML
changeset 27741 d2523b72ed44
parent 27736 3703dbd0cdea
child 27744 d4c5ddf98869
--- a/src/Pure/General/position.ML	Tue Aug 05 13:31:36 2008 +0200
+++ b/src/Pure/General/position.ML	Tue Aug 05 13:31:38 2008 +0200
@@ -27,6 +27,7 @@
   val setmp_thread_data_seq: T -> ('a -> 'b Seq.seq) -> 'a -> 'b Seq.seq
   type range = T * T
   val encode_range: range -> T
+  val report: Markup.T -> T -> unit
 end;
 
 structure Position: POSITION =
@@ -131,4 +132,11 @@
     | SOME (m, n) => [(Markup.end_lineN, string_of_int m), (Markup.end_columnN, string_of_int n)])
   in Pos (count, props') end;
 
+
+(* report markup *)
+
+fun report markup pos =
+  if pos = none then ()
+  else Output.status (Markup.markup (Markup.properties (properties_of pos) markup) "");
+
 end;