ignore other_id reports for now (see 8eda56033203): massive amounts of redirections to 'class' etc. makes it difficult to edit main HOL;
authorwenzelm
Thu, 10 Apr 2014 14:36:29 +0200
changeset 56514 db929027e701
parent 56513 34ea4d7f236c
child 56515 b62c4e6d1b55
ignore other_id reports for now (see 8eda56033203): massive amounts of redirections to 'class' etc. makes it difficult to edit main HOL; silently ignore excessive reports -- no ambition to detect that situation accurately;
src/Pure/PIDE/command.scala
src/Pure/PIDE/document.scala
--- a/src/Pure/PIDE/command.scala	Thu Apr 10 14:27:35 2014 +0200
+++ b/src/Pure/PIDE/command.scala	Thu Apr 10 14:36:29 2014 +0200
@@ -207,11 +207,7 @@
                         case None => bad(); state
                       }
                     case None =>
-                      chunk_name match {
-                        // FIXME workaround for static positions stemming from batch build
-                        case Text.Chunk.File(name) if name.endsWith(".thy") =>
-                        case _ => bad()
-                      }
+                      // silently ignore excessive reports
                       state
                   }
 
--- a/src/Pure/PIDE/document.scala	Thu Apr 10 14:27:35 2014 +0200
+++ b/src/Pure/PIDE/document.scala	Thu Apr 10 14:36:29 2014 +0200
@@ -536,9 +536,11 @@
       id == st.command.id ||
       (execs.get(id) match { case Some(st1) => st1.command.id == st.command.id case None => false })
 
-    private def other_id(id: Document_ID.Generic): Option[(Text.Chunk.Id, Text.Chunk)] =
+    private def other_id(id: Document_ID.Generic): Option[(Text.Chunk.Id, Text.Chunk)] = None
+    /* FIXME
       (execs.get(id) orElse commands.get(id)).map(st =>
         ((Text.Chunk.Id(st.command.id), st.command.chunk)))
+    */
 
     private def redirection(st: Command.State): Graph[Document_ID.Command, Unit] =
       (commands_redirection /: st.markups.redirection_iterator)({ case (graph, id) =>