TermSyntax.abbrev;
authorwenzelm
Sat, 09 Dec 2006 18:05:49 +0100
changeset 21729 7b3ccdae9212
parent 21728 906649272ba0
child 21730 88d8b4052792
TermSyntax.abbrev; ProofContext.set_expand_abbrevs;
src/Pure/Isar/specification.ML
--- a/src/Pure/Isar/specification.ML	Sat Dec 09 18:05:48 2006 +0100
+++ b/src/Pure/Isar/specification.ML	Sat Dec 09 18:05:49 2006 +0100
@@ -146,14 +146,14 @@
   let
     val ((vars, [(_, [prop])]), _) =
       prep (the_list raw_var) [(("", []), [raw_prop])]
-        (lthy |> ProofContext.expand_abbrevs false);
+        (lthy |> ProofContext.set_expand_abbrevs false);
     val ((x, T), rhs) = LocalDefs.abs_def (#2 (LocalDefs.cert_def lthy prop));
     val mx = (case vars of [] => NoSyn | [((y, _), mx)] =>
       if x = y then mx
       else error ("Head of abbreviation " ^ quote x ^ " differs from declaration " ^ quote y));
     val lthy' = lthy
       |> ProofContext.set_syntax_mode mode    (* FIXME !? *)
-      |> TermSyntax.abbrevs mode [((x, mx), rhs)]
+      |> TermSyntax.abbrev mode ((x, mx), rhs)
       |> ProofContext.restore_syntax_mode lthy;
     val _ = print_consts lthy' (K false) [(x, T)]
   in lthy' end;