author | wenzelm |
Mon, 29 Sep 2008 14:41:24 +0200 | |
changeset 28406 | daeb21fec18f |
parent 28405 | 000dee6d5d80 |
child 28407 | f9db1da584ac |
--- a/src/Pure/Isar/local_theory.ML Mon Sep 29 14:41:23 2008 +0200 +++ b/src/Pure/Isar/local_theory.ML Mon Sep 29 14:41:24 2008 +0200 @@ -154,7 +154,10 @@ fun target_result f lthy = let - val (res, ctxt') = f (target_of lthy); + val (res, ctxt') = target_of lthy + |> ContextPosition.set_visible false + |> f + ||> ContextPosition.restore_visible lthy; val thy' = ProofContext.theory_of ctxt'; val lthy' = lthy |> map_target (K ctxt')