src/Pure/Isar/isar_syn.ML
changeset 59935 343905de27b1
parent 59930 bdbc4b761c31
child 59936 b8ffc3dc9e24
equal deleted inserted replaced
59934:b65c4370f831 59935:343905de27b1
   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