equal
deleted
inserted
replaced
171 |
171 |
172 (* hide names *) |
172 (* hide names *) |
173 |
173 |
174 local |
174 local |
175 |
175 |
176 fun hide_names command_spec what hide parse prep = |
176 fun hide_names command_keyword what hide parse prep = |
177 Outer_Syntax.command command_spec ("hide " ^ what ^ " from name space") |
177 Outer_Syntax.command command_keyword ("hide " ^ what ^ " from name space") |
178 ((Parse.opt_keyword "open" >> not) -- Scan.repeat1 parse >> (fn (fully, args) => |
178 ((Parse.opt_keyword "open" >> not) -- Scan.repeat1 parse >> (fn (fully, args) => |
179 (Toplevel.theory (fn thy => |
179 (Toplevel.theory (fn thy => |
180 let val ctxt = Proof_Context.init_global thy |
180 let val ctxt = Proof_Context.init_global thy |
181 in fold (hide fully o prep ctxt) args thy end)))); |
181 in fold (hide fully o prep ctxt) args thy end)))); |
182 |
182 |