--- 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)