equal
deleted
inserted
replaced
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 |