From 2da6792633e8f6282a291487862404d63e360348 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Tue, 2 Dec 2008 03:32:41 +0000 Subject: [PATCH] Lennart Borgman (nxml-indent-line): Don't re-indent lines that already have the correct indentation. (Bug#859) --- lisp/nxml/nxml-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/nxml/nxml-mode.el b/lisp/nxml/nxml-mode.el index 49dcaecaab5..a2b20b25f4a 100644 --- a/lisp/nxml/nxml-mode.el +++ b/lisp/nxml/nxml-mode.el @@ -1370,7 +1370,8 @@ of the inserted start-tag or nil if none was inserted." "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") -- 2.39.2