ThyInfo.may_load_file;
authorwenzelm
Tue, 17 Aug 1999 22:19:48 +0200
changeset 7243 886ecd6a27ac
parent 7242 f17f2e8ba0c7
child 7244 ad714526c23e
ThyInfo.may_load_file;
src/Pure/Isar/outer_syntax.ML
--- a/src/Pure/Isar/outer_syntax.ML	Tue Aug 17 22:19:25 1999 +0200
+++ b/src/Pure/Isar/outer_syntax.ML	Tue Aug 17 22:19:48 1999 +0200
@@ -286,10 +286,10 @@
 fun try_ml_file name ml time =
   let
     val path = ThyLoad.ml_path name;
-    val tr = Toplevel.imperative (fn () => ThyInfo.load_file time path);
+    val tr = Toplevel.imperative (fn () => ThyInfo.may_load_file ml time path);
     val tr_name = if time then "time_use" else "use";
   in
-    if not ml orelse is_none (ThyLoad.check_file path) then ()
+    if is_none (ThyLoad.check_file path) then ()
     else Toplevel.excursion_error [Toplevel.empty |> Toplevel.name tr_name |> tr]
   end;