domtool-mode patch from the inimitable clinton
authorAdam Chlipala <adamc@hcoop.net>
Sun, 16 Dec 2007 20:22:02 +0000 (20:22 +0000)
committerAdam Chlipala <adamc@hcoop.net>
Sun, 16 Dec 2007 20:22:02 +0000 (20:22 +0000)
elisp/domtool-mode-startup.el
elisp/domtool-mode.el
src/autodoc.sml

index fc63a0e..a909c3e 100644 (file)
@@ -2,3 +2,5 @@
 Major Mode for editing Domtool files." t nil)
 
 (add-to-list (quote auto-mode-alist) (quote ("\\.\\(dtl\\|com\\|net\\|org\\|edu\\|mil\\|biz\\|info\\|name\\|be\\|ca\\|cc\\|de\\|fr\\|in\\|mu\\|se\\|uk\\|us\\|ws\\)$" . domtool-mode)))
+
+(provide 'domtool-mode-startup)
index 9330e0b..cbd5175 100644 (file)
@@ -40,7 +40,7 @@
 (defun domtool-syms-re (&rest syms)
   (concat "\\<" (regexp-opt syms t) "\\>"))
 
-(load-file "/usr/local/share/emacs/site-lisp/domtool-mode/domtool-tables.el")
+(require 'domtool-tables)
 
 (defvar domtool-font-lock-keywords
   `(,(concat
                    (incf depth)
                  (decf depth)))
              (+ (current-indentation) depth)))))
+
+(provide 'domtool-mode)
index 640012c..c64180d 100644 (file)
@@ -252,7 +252,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