changeset 366:3004f8843e36

Proper indenting of normal ML-y code after </xml>
author Adam Chlipala <adamc@hcoop.net>
date Thu, 16 Oct 2008 13:17:09 -0400
parents dda8f3c6ae7c
children 28d3d7210687
files src/elisp/urweb-defs.el src/elisp/urweb-mode.el
diffstat 2 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/elisp/urweb-defs.el	Thu Oct 16 13:01:24 2008 -0400
+++ b/src/elisp/urweb-defs.el	Thu Oct 16 13:17:09 2008 -0400
@@ -172,6 +172,7 @@
     ("then" "\\<if\\>")
     ("else" "\\<if\\>" (urweb-bolp))
     ("of" "\\<case\\>")
+    ("</xml>" "<xml>")
     ("d=" nil))
   "Symbols that should behave somewhat like close parens.")
 
--- a/src/elisp/urweb-mode.el	Thu Oct 16 13:01:24 2008 -0400
+++ b/src/elisp/urweb-mode.el	Thu Oct 16 13:17:09 2008 -0400
@@ -573,6 +573,8 @@
   (let ((sym (unless (save-excursion (urweb-backward-arg))
 	       (urweb-backward-spaces)
 	       (urweb-backward-sym))))
+    (if (and (= sym ">") (save-excursion (backward-char 5) (looking-at "</xml")))
+        (setq sym "</xml>"))
     (if (member sym '(";" "d=")) (setq sym nil))
     (if sym (urweb-get-sym-indent sym)
       ;; FIXME: this can take a *long* time !!