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:
parent
8272f79c0f
commit
9489640367
|
@ -57,8 +57,9 @@ val _ =
|
||||||
(Parse.syntax_mode -- Scan.option Parse_Spec.constdecl -- Parse.prop -- Parse.for_fixes
|
(Parse.syntax_mode -- Scan.option Parse_Spec.constdecl -- Parse.prop -- Parse.for_fixes
|
||||||
>> (fn (((mode, decl), spec), params) => fn restricted => fn lthy =>
|
>> (fn (((mode, decl), spec), params) => fn restricted => fn lthy =>
|
||||||
lthy
|
lthy
|
||||||
|
|> Local_Theory.open_target |> snd
|
||||||
|> Specification.abbreviation_cmd mode decl params spec restricted
|
|> 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)));
|
|> revert_abbrev (mode, name_of spec lthy)));
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue