tuned;
authorwenzelm
Fri, 14 Dec 2007 21:15:36 +0100
changeset 25630 98dd706319a1
parent 25629 f7c6ca73a8bd
child 25631 9036ccd685b4
tuned;
src/Pure/ProofGeneral/proof_general_emacs.ML
--- a/src/Pure/ProofGeneral/proof_general_emacs.ML	Fri Dec 14 21:15:35 2007 +0100
+++ b/src/Pure/ProofGeneral/proof_general_emacs.ML	Fri Dec 14 21:15:36 2007 +0100
@@ -100,15 +100,18 @@
 (* common markup *)
 
 fun proof_general_markup (name, props) =
-  (if name = Markup.promptN then ("", special "372")
-    else if name = Markup.stateN then (special "366" ^ "\n", "\n" ^ special "367")
-    else if name = Markup.sendbackN then (special "376", special "377")
-    else if name = Markup.hiliteN then (special "327", special "330")
-    else ("", ""))
-  |> (name <> Markup.promptN andalso print_mode_active IsabelleProcess.test_markupN) ?
-      (fn (bg1, en1) =>
-        let val (bg2, en2) = IsabelleProcess.test_markup (name, props)
-        in (bg1 ^ bg2, en2 ^ en1) end);
+  let
+    val (bg1, en1) =
+      if name = Markup.promptN then ("", special "372")
+      else if name = Markup.stateN then (special "366" ^ "\n", "\n" ^ special "367")
+      else if name = Markup.sendbackN then (special "376", special "377")
+      else if name = Markup.hiliteN then (special "327", special "330")
+      else ("", "");
+    val (bg2, en2) =
+      if name <> Markup.promptN andalso print_mode_active IsabelleProcess.test_markupN
+      then IsabelleProcess.test_markup (name, props)
+      else ("", "");
+  in (bg1 ^ bg2, en2 ^ en1) end;
 
 val _ = Markup.add_mode proof_generalN proof_general_markup;