src/Pure/Isar/isar_cmd.ML
changeset 15624 484178635bd8
parent 15596 8665d08085df
child 15703 727ef1b8b3ee
equal deleted inserted replaced
15623:8b40f741597c 15624:484178635bd8
   220 fun print_locale (import, body) = Toplevel.unknown_theory o Toplevel.keep (fn state =>
   220 fun print_locale (import, body) = Toplevel.unknown_theory o Toplevel.keep (fn state =>
   221   let val thy = Toplevel.theory_of state in
   221   let val thy = Toplevel.theory_of state in
   222     Locale.print_locale thy import (map (Locale.map_attrib_element (Attrib.multi_attribute thy)) body)
   222     Locale.print_locale thy import (map (Locale.map_attrib_element (Attrib.multi_attribute thy)) body)
   223   end);
   223   end);
   224 
   224 
   225 fun print_registrations name = Toplevel.unknown_theory o
   225 fun print_registrations name = Toplevel.unknown_context o
   226   Toplevel.keep (fn state => let val thy = Toplevel.theory_of state in
   226   Toplevel.keep (Toplevel.node_case (Locale.print_global_registrations name)
   227     Locale.print_global_registrations thy name
   227     (Locale.print_local_registrations name o Proof.context_of));
   228   end);
       
   229 
   228 
   230 val print_attributes = Toplevel.unknown_theory o
   229 val print_attributes = Toplevel.unknown_theory o
   231   Toplevel.keep (Attrib.print_attributes o Toplevel.theory_of);
   230   Toplevel.keep (Attrib.print_attributes o Toplevel.theory_of);
   232 
   231 
   233 val print_rules = Toplevel.unknown_context o
   232 val print_rules = Toplevel.unknown_context o