proper check for imports, not just ROOT entries;
authorwenzelm
Thu, 28 Dec 2017 23:15:00 +0100
changeset 67294 5f082b1fa9fa
parent 67293 2fe338d91d47
child 67295 9b3eb67ab579
proper check for imports, not just ROOT entries;
src/Pure/PIDE/resources.scala
--- a/src/Pure/PIDE/resources.scala	Thu Dec 28 23:10:30 2017 +0100
+++ b/src/Pure/PIDE/resources.scala	Thu Dec 28 23:15:00 2017 +0100
@@ -161,6 +161,8 @@
           error("Bad theory name " + quote(name) +
             " for file " + thy_path(Path.basic(base_name)) + Position.here(pos) +
             Completion.report_theories(pos, List(base_name)))
+        if (Sessions.exclude_theory(name))
+          error("Bad theory name " + quote(name) + Position.here(pos))
 
         val imports = header.imports.map({ case (s, pos) => (import_name(node_name, s), pos) })
         Document.Node.Header(imports, header.keywords, header.abbrevs)