src/Pure/Thy/sessions.scala
changeset 65580 66351f79c295
parent 65566 94c514ea2846
child 65592 f45609debe0d
--- a/src/Pure/Thy/sessions.scala	Tue Apr 25 17:10:17 2017 +0100
+++ b/src/Pure/Thy/sessions.scala	Tue Apr 25 21:31:28 2017 +0200
@@ -502,6 +502,10 @@
       theories: List[(List[Options.Spec], List[((String, Position.T), Boolean)])],
       files: List[String],
       document_files: List[(String, String)]) extends Entry
+    {
+      def theories_no_position: List[(List[Options.Spec], List[(String, Boolean)])] =
+        theories.map({ case (a, b) => (a, b.map({ case ((c, _), d) => (c, d) })) })
+    }
 
     private val chapter: Parser[Chapter] =
     {
@@ -583,8 +587,8 @@
             entry.document_files.map({ case (s1, s2) => (Path.explode(s1), Path.explode(s2)) })
 
           val meta_digest =
-            SHA1.digest((entry_chapter, name, entry.parent, entry.options,
-              entry.imports, entry.theories, entry.files, entry.document_files).toString)
+            SHA1.digest((entry_chapter, name, entry.parent, entry.options, entry.imports,
+              entry.theories_no_position, entry.files, entry.document_files).toString)
 
           val info =
             Info(name, entry_chapter, select, entry.pos, entry.groups,