Topelevel.run_command: interactive mode for initial 'theory' ensures that Thy_Info.begin_theory loads parent theories;
authorwenzelm
Tue, 20 Jul 2010 18:33:19 +0200
changeset 37856 173974e07dea
parent 37855 1ad8205078d4
child 37857 4e4b8c0dc766
Topelevel.run_command: interactive mode for initial 'theory' ensures that Thy_Info.begin_theory loads parent theories;
src/Pure/Isar/toplevel.ML
--- a/src/Pure/Isar/toplevel.ML	Tue Jul 20 18:19:50 2010 +0200
+++ b/src/Pure/Isar/toplevel.ML	Tue Jul 20 18:33:19 2010 +0200
@@ -630,7 +630,7 @@
         SOME name => Exn.capture (fn () => Thy_Load.check_name thy_name name) ()
       | NONE => Exn.Result ()) of
     Exn.Result () =>
-      (case transition false tr st of
+      (case transition (is_some (init_of tr)) tr st of
         SOME (st', NONE) => (status tr Markup.finished; async_state tr st'; SOME st')
       | SOME (_, SOME (exn as Exn.Interrupt, _)) => reraise exn
       | SOME (_, SOME exn_info) => (error_msg tr exn_info; status tr Markup.failed; NONE)