# HG changeset patch # User Glenn Morris # Date 1228188761 0 # Node ID d72f163ce147acef608c6897688355dfdaf060a8 # Parent 70331b8d068a1d1fd88fb1f02e5653f3830ed80d Lennart Borgman (nxml-indent-line): Don't re-indent lines that already have the correct indentation. (Bug#859) diff -r 70331b8d068a -r d72f163ce147 lisp/nxml/nxml-mode.el --- a/lisp/nxml/nxml-mode.el Tue Dec 02 03:32:05 2008 +0000 +++ b/lisp/nxml/nxml-mode.el Tue Dec 02 03:32:41 2008 +0000 @@ -1370,7 +1370,8 @@ "Indent current line as XML." (let ((indent (nxml-compute-indent)) (from-end (- (point-max) (point)))) - (when indent + (when (and indent + (/= indent (current-indentation))) (beginning-of-line) (let ((bol (point))) (skip-chars-forward " \t")