Output_Position.report_text -- markup with potential "arguments";
authorwenzelm
Thu, 19 Aug 2010 11:28:51 +0200
changeset 38481 81ec258c4cd3
parent 38480 e5eed57913d0
child 38482 7b6ee937b75f
Output_Position.report_text -- markup with potential "arguments";
src/Pure/context_position.ML
--- a/src/Pure/context_position.ML	Thu Aug 19 11:26:07 2010 +0200
+++ b/src/Pure/context_position.ML	Thu Aug 19 11:28:51 2010 +0200
@@ -9,6 +9,7 @@
   val is_visible: Proof.context -> bool
   val set_visible: bool -> Proof.context -> Proof.context
   val restore_visible: Proof.context -> Proof.context -> Proof.context
+  val report_text: Proof.context -> Markup.T -> Position.T -> string -> unit
   val report: Proof.context -> Markup.T -> Position.T -> unit
 end;
 
@@ -25,7 +26,9 @@
 val set_visible = Data.put;
 val restore_visible = set_visible o is_visible;
 
-fun report ctxt markup pos =
-  if is_visible ctxt then Position.report markup pos else ();
+fun report_text ctxt markup pos txt =
+  if is_visible ctxt then Position.report_text markup pos txt else ();
+
+fun report ctxt markup pos = report_text ctxt markup pos "";
 
 end;