# HG changeset patch # User wenzelm # Date 1208463747 -7200 # Node ID 00ff79ab6e6b7b7c20957548756cf10824c9b82e # Parent 4773b832f1b1208e1ab41791cfe60f2f09528af5 no_vars: reset body mode, i.e. invent global frees (which are acceptable to Variable.auto_fixes); diff -r 4773b832f1b1 -r 00ff79ab6e6b src/Pure/Isar/attrib.ML --- a/src/Pure/Isar/attrib.ML Thu Apr 17 22:22:26 2008 +0200 +++ b/src/Pure/Isar/attrib.ML Thu Apr 17 22:22:27 2008 +0200 @@ -263,8 +263,10 @@ val standard = no_args (Thm.rule_attribute (K Drule.standard)); -val no_vars = no_args (Thm.rule_attribute (fn ctxt => fn th => - let val ((_, [th']), _) = Variable.import_thms true [th] (Context.proof_of ctxt) +val no_vars = no_args (Thm.rule_attribute (fn context => fn th => + let + val ctxt = Variable.set_body false (Context.proof_of context); + val ((_, [th']), _) = Variable.import_thms true [th] ctxt; in th' end)); val eta_long =