avoid gensym;
authorwenzelm
Thu, 04 Oct 2007 14:42:11 +0200
changeset 24829 e1214fa781ca
parent 24828 137c242e7277
child 24830 a7b3ab44d993
avoid gensym;
src/Pure/Thy/present.ML
--- a/src/Pure/Thy/present.ML	Thu Oct 04 13:26:34 2007 +0200
+++ b/src/Pure/Thy/present.ML	Thu Oct 04 14:42:11 2007 +0200
@@ -533,7 +533,9 @@
       let
         val base = Path.base path;
         val name =
-          (case Path.implode (#1 (Path.split_ext base)) of "" => gensym "DUMMY" | s => s);
+          (case Path.implode (#1 (Path.split_ext base)) of
+            "" => "DUMMY" ^ serial_string ()
+          | s => s);
       in
         if File.exists path then
           (((name, base, File.read path), (i, Latex.theory_entry name)), i + 1)