--- a/src/Pure/Isar/isar_syn.ML Mon Jul 14 17:51:41 2008 +0200
+++ b/src/Pure/Isar/isar_syn.ML Mon Jul 14 17:51:42 2008 +0200
@@ -31,7 +31,7 @@
val _ =
OuterSyntax.command "theory" "begin theory" (K.tag_theory K.thy_begin)
- (ThyHeader.args >> (Toplevel.print oo IsarCmd.theory));
+ (ThyHeader.args >> (Toplevel.print oo IsarCmd.init_theory));
val _ =
OuterSyntax.command "end" "end (local) theory" (K.tag_theory K.thy_end)
--- a/src/Pure/Isar/outer_syntax.ML Mon Jul 14 17:51:41 2008 +0200
+++ b/src/Pure/Isar/outer_syntax.ML Mon Jul 14 17:51:42 2008 +0200
@@ -202,7 +202,7 @@
let
val result = ref thy;
val trs = parse (Path.position path) (File.read path);
- val init = Toplevel.init_theory "" (K thy) (fn thy' => result := thy') (K ());
+ val init = Toplevel.init_theory "" (K thy) (fn thy' => result := thy');
val _ = Toplevel.excursion (init Toplevel.empty :: trs @ [Toplevel.exit Toplevel.empty]);
in ! result end;