clarified PIDE markup;
authorwenzelm
Wed, 22 Jun 2016 11:10:18 +0200
changeset 63346 c8366fb67538
parent 63345 70b2313f9c52
child 63347 e344dc82f6c2
clarified PIDE markup;
src/Pure/Isar/generic_target.ML
--- a/src/Pure/Isar/generic_target.ML	Wed Jun 22 10:42:53 2016 +0200
+++ b/src/Pure/Isar/generic_target.ML	Wed Jun 22 11:10:18 2016 +0200
@@ -242,7 +242,9 @@
 
     (*local definition*)
     val ([(lhs, (_, local_def))], lthy3) = lthy2
-      |> Local_Defs.define [((b, NoSyn), (Thm.empty_binding, lhs'))];
+      |> Context_Position.set_visible false
+      |> Local_Defs.define [((b, NoSyn), (Thm.empty_binding, lhs'))]
+      ||> Context_Position.restore_visible lthy2;
 
     (*result*)
     val def =
@@ -329,8 +331,8 @@
   in
     lthy
     |> target_abbrev prmode (b, mx') global_rhs (type_params, term_params)
+    |> Context_Position.set_visible false
     |> Proof_Context.add_abbrev Print_Mode.internal (b, rhs) |> snd
-    |> Context_Position.set_visible false
     |> Local_Defs.fixed_abbrev ((b, NoSyn), rhs)
     ||> Context_Position.restore_visible lthy
   end;