From 96479927c91b925379501ce0999303d79593defa Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Fri, 20 May 2011 10:15:00 -0300 Subject: [PATCH] * lisp/nxml/nxml-mode.el (nxml-electric-slash): Reindent when completion is enabled. Suggested by James Ahlborn . Fixes: debbugs:8704 --- lisp/ChangeLog | 5 +++++ lisp/nxml/nxml-mode.el | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d1ec662bac8..652c0d3d264 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2011-05-20 Stefan Monnier + + * nxml/nxml-mode.el (nxml-electric-slash): Reindent when completion is + enabled. Suggested by James Ahlborn (bug#8704). + 2011-05-20 Nix * files.el (basic-save-buffer-2): diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el index 993a6f7a2ab..93e5f9d25f4 100644 --- a/lisp/nxml/nxml-mode.el +++ b/lisp/nxml/nxml-mode.el @@ -1263,9 +1263,9 @@ on the line, reindent the line." (nxml-scan-error nil)) (when (and (eq (nxml-token-before) (point)) (eq xmltok-type 'partial-empty-element)) - (insert ">"))) - (when (and end-tag-p at-indentation) - (nxml-indent-line)))))) + (insert ">")))) + (when (and end-tag-p at-indentation) + (nxml-indent-line))))) (defun nxml-balanced-close-start-tag-block () "Close the start-tag before point with `>' and insert a balancing end-tag. -- 2.11.4.GIT