# HG changeset patch # User Adam Chlipala # Date 1224176484 14400 # Node ID dda8f3c6ae7c63c4ed47908201e94fad6c144b32 # Parent 7c58dc323683b629594004d31820a9edcd6c19b8 Special case indenting for ... diff -r 7c58dc323683 -r dda8f3c6ae7c src/elisp/urweb-mode.el --- a/src/elisp/urweb-mode.el Thu Oct 16 12:55:16 2008 -0400 +++ b/src/elisp/urweb-mode.el Thu Oct 16 13:01:24 2008 -0400 @@ -452,6 +452,13 @@ (1+ (current-column)) nil)))) +(defun urweb-begun-xml () + "Check if this is the first new line in a new ... section" + (save-excursion + (let ((start-pos (point))) + (previous-line 1) + (search-forward "" start-pos t)))) + (defun urweb-new-tags () "Decide if the previous line of XML introduced unclosed tags" (save-excursion @@ -487,7 +494,9 @@ (setq done t) (decf depth))) (setq done t)))) - (current-indentation)))) + (if (looking-at "