unique file names via serial numbers, to allow files like "root" or multiple files with same base name;
--- a/src/Pure/Thy/present.ML Mon Sep 19 12:58:52 2011 +0200
+++ b/src/Pure/Thy/present.ML Mon Sep 19 14:31:20 2011 +0200
@@ -499,8 +499,8 @@
val base = Path.base path;
val name =
(case Path.implode (#1 (Path.split_ext base)) of
- "" => "DUMMY" ^ serial_string ()
- | s => s);
+ "" => "DUMMY"
+ | s => s) ^ serial_string ();
in
if File.exists path then
(((name, base, File.read path), (i, Latex.theory_entry name)), i + 1)