Markup.enclose;
authorwenzelm
Tue, 10 Jul 2007 23:29:44 +0200
changeset 23720 d0d583c7a41f
parent 23719 ccd9cb15c062
child 23721 aa088ef9237c
Markup.enclose;
src/Pure/General/position.ML
src/Pure/Isar/toplevel.ML
--- a/src/Pure/General/position.ML	Tue Jul 10 23:29:43 2007 +0200
+++ b/src/Pure/General/position.ML	Tue Jul 10 23:29:44 2007 +0200
@@ -65,8 +65,7 @@
   | print (Pos (SOME n, SOME s)) = "(line " ^ string_of_int n ^ " of " ^ quote s ^ ")";
 
 fun str_of (Pos (NONE, NONE)) = ""
-  | str_of pos = " " ^
-      (Markup.output (Markup.properties (properties_of pos) Markup.position) |-> enclose)
-        (print pos);
+  | str_of pos =
+      " " ^ Markup.enclose (Markup.properties (properties_of pos) Markup.position) (print pos);
 
 end;
--- a/src/Pure/Isar/toplevel.ML	Tue Jul 10 23:29:43 2007 +0200
+++ b/src/Pure/Isar/toplevel.ML	Tue Jul 10 23:29:44 2007 +0200
@@ -751,9 +751,7 @@
   in if secure then warning "Cannot exit to ML in secure mode" else (); secure end;
 
 fun raw_loop src =
-  let val prompt =
-    Output.escape ((Markup.output Markup.prompt |-> enclose) Source.default_prompt)
-  in
+  let val prompt = Output.escape (Markup.enclose Markup.prompt Source.default_prompt) in
     (case get_interrupt (Source.set_prompt prompt src) of
       NONE => (writeln "\nInterrupt."; raw_loop src)
     | SOME NONE => if warn_secure () then quit () else ()