norm_absolute: CRITICAL;
authorwenzelm
Tue, 28 Aug 2007 11:25:31 +0200
changeset 24446 bb7a85ea57cf
parent 24445 cad0644294a9
child 24447 fbd6d7cbf6dd
norm_absolute: CRITICAL;
src/Pure/General/file.ML
--- a/src/Pure/General/file.ML	Tue Aug 28 11:25:30 2007 +0200
+++ b/src/Pure/General/file.ML	Tue Aug 28 11:25:31 2007 +0200
@@ -56,13 +56,13 @@
 val cd = cd o platform_path;
 val pwd = explode_platform_path o pwd;
 
-fun norm_absolute p =
+fun norm_absolute p = NAMED_CRITICAL "IO" (fn () =>
   let
     val p' = pwd ();
     fun norm p = if can cd p then pwd ()
       else Path.append (norm (Path.dir p)) (Path.base p);
     val p'' = norm p;
-  in (cd p'; p'') end
+  in (cd p'; p'') end);
 
 fun full_path path =
   (if Path.is_absolute path then path