export use_thys_wrt;
authorwenzelm
Wed, 04 Aug 2010 15:50:55 +0200
changeset 38146 a5916f2b6791
parent 38145 675827e61eb9
child 38147 2b08a96a283e
export use_thys_wrt;
src/Pure/Thy/thy_info.ML
--- a/src/Pure/Thy/thy_info.ML	Wed Aug 04 15:45:49 2010 +0200
+++ b/src/Pure/Thy/thy_info.ML	Wed Aug 04 15:50:55 2010 +0200
@@ -17,6 +17,7 @@
   val loaded_files: string -> Path.T list
   val remove_thy: string -> unit
   val kill_thy: string -> unit
+  val use_thys_wrt: Path.T -> string list -> unit
   val use_thys: string list -> unit
   val use_thy: string -> unit
   val toplevel_begin_theory: string -> string list -> (Path.T * bool) list -> theory
@@ -306,10 +307,10 @@
 
 (* use_thy *)
 
-fun use_thys_dir dir arg =
+fun use_thys_wrt dir arg =
   schedule_tasks (snd (require_thys [] dir arg Graph.empty));
 
-val use_thys = use_thys_dir Path.current;
+val use_thys = use_thys_wrt Path.current;
 val use_thy = use_thys o single;
 
 
@@ -319,7 +320,7 @@
   let
     val dir = Thy_Load.get_master_path ();
     val _ = kill_thy name;
-    val _ = use_thys_dir dir imports;
+    val _ = use_thys_wrt dir imports;
     val parents = map (get_theory o base_name) imports;
   in Thy_Load.begin_theory dir name parents uses end;