doc: correct apache docs link for allow/deny/order
[hcoop/domtool2.git] / src / autodoc.sml
index 640012c..baa8d54 100644 (file)
@@ -36,7 +36,7 @@ fun check' G fname =
        if !ErrorMsg.anyErrors then
            G
        else
-           Tycheck.checkFile G (Defaults.tInit ()) prog
+           Tycheck.checkFile G prog
     end
 
 fun autodoc {outdir, infiles} =
@@ -232,6 +232,8 @@ fun makeEmacsKeywords infiles =
                              (case isAction evs t of
                                   SOME evs => (types, contexts, s :: actions, vals, evs)
                                 | NONE => (types, contexts, actions, s :: vals, evs))
+                           | DEnv (s, _, _) =>
+                             (types, contexts, actions, vals, StringSet.add (evs, s))
                            | DContext s => (types, s :: contexts, actions, vals, evs))
                      acc decls
            end
@@ -252,7 +254,8 @@ fun makeEmacsKeywords infiles =
        printKind ("contexts", contexts);
        printKind ("actions", actions);
        printKind ("vals", vals);
-       printKind ("env-vars", StringSet.listItems evs)
+       printKind ("env-vars", StringSet.listItems evs);
+       print "(provide 'domtool-tables)\n"
     end
 
 end