# HG changeset patch # User wenzelm # Date 1232721432 -3600 # Node ID 101c9093d56ae6cbec72ae428aa61445070c4651 # Parent dc1257eaa4f2eb7dbcb3892c22aa7ec947ddeedb# Parent 82054da94a74c96c1e264b0aa303ca7cca14cb47 merged diff -r dc1257eaa4f2 -r 101c9093d56a doc-src/more_antiquote.ML --- a/doc-src/more_antiquote.ML Fri Jan 23 09:06:14 2009 +0100 +++ b/doc-src/more_antiquote.ML Fri Jan 23 15:37:12 2009 +0100 @@ -113,13 +113,13 @@ val parse_const_terms = Scan.repeat1 Args.term >> (fn ts => fn thy => map (Code_Unit.check_const thy) ts); val parse_consts = Scan.lift (Args.parens (Args.$$$ "consts")) |-- parse_const_terms - >> (fn mk_cs => fn thy => fn naming => map (the o Code_Thingol.lookup_const naming) (mk_cs thy)); + >> (fn mk_cs => fn thy => fn naming => map_filter (Code_Thingol.lookup_const naming) (mk_cs thy)); val parse_types = Scan.lift (Args.parens (Args.$$$ "types") |-- Scan.repeat1 Args.name) - >> (fn tycos => fn thy => fn naming => map (the o Code_Thingol.lookup_tyco naming o Sign.intern_type thy) tycos); + >> (fn tycos => fn thy => fn naming => map_filter (Code_Thingol.lookup_tyco naming o Sign.intern_type thy) tycos); val parse_classes = Scan.lift (Args.parens (Args.$$$ "classes") |-- Scan.repeat1 Args.name) - >> (fn classes => fn thy => fn naming => map (the o Code_Thingol.lookup_class naming o Sign.intern_class thy) classes); + >> (fn classes => fn thy => fn naming => map_filter (Code_Thingol.lookup_class naming o Sign.intern_class thy) classes); val parse_instances = Scan.lift (Args.parens (Args.$$$ "instances") |-- Scan.repeat1 (Args.name --| Args.$$$ "::" -- Args.name)) - >> (fn insts => fn thy => fn naming => map (the o Code_Thingol.lookup_instance naming o apsnd (Sign.intern_type thy) o apfst (Sign.intern_class thy) o swap) insts); + >> (fn insts => fn thy => fn naming => map_filter (Code_Thingol.lookup_instance naming o apsnd (Sign.intern_type thy) o apfst (Sign.intern_class thy) o swap) insts); val parse_names = parse_consts || parse_types || parse_classes || parse_instances; fun code_stmts src ctxt ((mk_cs, mk_stmtss), target) = diff -r dc1257eaa4f2 -r 101c9093d56a src/Pure/pure_setup.ML --- a/src/Pure/pure_setup.ML Fri Jan 23 09:06:14 2009 +0100 +++ b/src/Pure/pure_setup.ML Fri Jan 23 15:37:12 2009 +0100 @@ -33,7 +33,7 @@ map (fn (x, y) => Pretty.str (x ^ "=" ^ y)) o Position.properties_of)); install_pp (make_pp ["Thm", "thm"] ProofDisplay.pprint_thm); install_pp (make_pp ["Thm", "cterm"] ProofDisplay.pprint_cterm); -install_pp (make_pp ["Binding", "T"] (Pretty.pprint o Pretty.str o Binding.display)); +install_pp (make_pp ["Binding", "binding"] (Pretty.pprint o Pretty.str o Binding.display)); install_pp (make_pp ["Thm", "ctyp"] ProofDisplay.pprint_ctyp); install_pp (make_pp ["Context", "theory"] Context.pprint_thy); install_pp (make_pp ["Context", "theory_ref"] Context.pprint_thy_ref);