accomodate autofix discipline of non-body context;
authorwenzelm
Wed, 30 Mar 2011 22:53:18 +0200
changeset 42173 5d33c12ccf22
parent 42172 e86b10c68f0b
child 42174 d0be2722ce9f
accomodate autofix discipline of non-body context;
src/Pure/Isar/proof_context.ML
--- a/src/Pure/Isar/proof_context.ML	Wed Mar 30 22:45:10 2011 +0200
+++ b/src/Pure/Isar/proof_context.ML	Wed Mar 30 22:53:18 2011 +0200
@@ -673,7 +673,7 @@
   markup_const = fn x => [Name_Space.markup_entry (const_space ctxt) x],
   markup_free = fn x =>
     [if can Name.dest_skolem x then Markup.skolem else Markup.free] @
-    (if Variable.is_fixed ctxt x then [] else [Markup.hilite]),
+    (if not (Variable.is_body ctxt) orelse Variable.is_fixed ctxt x then [] else [Markup.hilite]),
   markup_var = fn xi => [Markup.name (Term.string_of_vname xi) Markup.var]};
 
 val decode_term = Syntax.decode_term o term_context;