lib: avoid use of Local_Theory.reset

Local_Theory.reset is about to be discontinued in the next Isabelle release
This commit is contained in:
Gerwin Klein 2019-01-25 12:11:31 +11:00
parent 8272f79c0f
commit 9489640367
1 changed files with 2 additions and 1 deletions

View File

@ -57,8 +57,9 @@ val _ =
(Parse.syntax_mode -- Scan.option Parse_Spec.constdecl -- Parse.prop -- Parse.for_fixes
>> (fn (((mode, decl), spec), params) => fn restricted => fn lthy =>
lthy
|> Local_Theory.open_target |> snd
|> Specification.abbreviation_cmd mode decl params spec restricted
|> Local_Theory.reset (* commit new abbrev. name into theory context *)
|> Local_Theory.close_target (* commit new abbrev. name *)
|> revert_abbrev (mode, name_of spec lthy)));
end