Mercurial > urweb
diff src/elisp/urweb-mode.el @ 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 |
line wrap: on
line diff
--- 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 !!