--- a/src/Pure/Isar/outer_syntax.ML Mon Aug 23 17:06:18 2004 +0200
+++ b/src/Pure/Isar/outer_syntax.ML Mon Aug 23 18:31:18 2004 +0200
@@ -296,7 +296,7 @@
val pos = Path.position path;
val (name', parents, files) = ThyHeader.scan (src, pos);
val ml_path = ThyLoad.ml_path name;
- val ml_file = if ml andalso is_some (ThyLoad.check_file ml_path) then [ml_path] else [];
+ val ml_file = if ml andalso is_some (ThyLoad.check_file None ml_path) then [ml_path] else [];
in
if name <> name' then
error ("Filename " ^ quote (Path.pack path) ^
@@ -315,7 +315,7 @@
val tr = Toplevel.imperative (fn () => ThyInfo.load_file time path);
val tr_name = if time then "time_use" else "use";
in
- if is_none (ThyLoad.check_file path) then ()
+ if is_none (ThyLoad.check_file None path) then ()
else Toplevel.excursion [Toplevel.empty |> Toplevel.name tr_name |> tr]
end;
--- a/src/Pure/proof_general.ML Mon Aug 23 17:06:18 2004 +0200
+++ b/src/Pure/proof_general.ML Mon Aug 23 18:31:18 2004 +0200
@@ -393,7 +393,7 @@
fun try_update_thy_only file =
ThyLoad.cond_add_path (Path.dir (Path.unpack file)) (fn () =>
let val name = thy_name file in
- if is_some (ThyLoad.check_file (ThyLoad.thy_path name))
+ if is_some (ThyLoad.check_file None (ThyLoad.thy_path name))
then update_thy_only name
else warning ("Unkown theory context of ML file." ^ which_context ())
end) ();