tuned trace_action;
authorwenzelm
Thu, 21 Oct 1999 19:00:25 +0200
changeset 7911 b8dee46d778a
parent 7910 e54db490c537
child 7912 0e42be14f136
tuned trace_action;
src/Pure/Interface/proof_general.ML
--- a/src/Pure/Interface/proof_general.ML	Thu Oct 21 19:00:01 1999 +0200
+++ b/src/Pure/Interface/proof_general.ML	Thu Oct 21 19:00:25 1999 +0200
@@ -146,13 +146,18 @@
 fun trace_action action name =
   let
     val update = (action = ThyInfo.Update);
-    fun loaded ((path, _), really) =
+    fun loaded (path, really) =
       if update andalso not really then None
-      else Some (File.sysify_path path);
-    val files = mapfilter loaded (ThyInfo.loaded_files name);
+      else Some path;
+    val tell = tell_pg (if update then "this file is loaded:" else "you can unlock the file")
+      o File.sysify_path;
+
+    val (master, files) = ThyInfo.loaded_files name;
   in
-    if update then seq (tell_pg "this file is loaded:") files
-    else seq (tell_pg "you can unlock the file") files
+    (case master of
+      Some path => tell path
+    | None => tell (ThyLoad.thy_path name));     (*just to make sure ...*)
+    seq tell (mapfilter loaded files)
   end;
 
 in