src/Pure/old_goals.ML
changeset 33040 cffdb7b28498
parent 32966 5b21661fe618
child 35021 c839a4c670c6
--- a/src/Pure/old_goals.ML	Wed Oct 21 08:16:25 2009 +0200
+++ b/src/Pure/old_goals.ML	Wed Oct 21 10:15:31 2009 +0200
@@ -259,7 +259,7 @@
 
 (*Generates the list of new theories when the proof state's theory changes*)
 fun thy_error (thy,thy') =
-  let val names = Context.display_names thy' \\ Context.display_names thy
+  let val names = subtract (op =) (Context.display_names thy) (Context.display_names thy')
   in  case names of
         [name] => "\nNew theory: " ^ name
       | _       => "\nNew theories: " ^ space_implode ", " names