diff options
author | Glenn Morris <rgm@gnu.org> | 2008-12-02 03:32:41 +0000 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2008-12-02 03:32:41 +0000 |
commit | 763af04bd8f4068c7ac8de053edd16ec3bda3ad7 (patch) | |
tree | 4152ba37852de9ee3bf825542239738f070a61db /lisp/nxml/nxml-mode.el | |
parent | c6558e143b95614d4707fd21b5cf3e83857b43e6 (diff) | |
download | emacs-763af04bd8f4068c7ac8de053edd16ec3bda3ad7.tar.gz |
Lennart Borgman <lennart.borgman at gmail.com>
(nxml-indent-line): Don't re-indent lines that already have the
correct indentation. (Bug#859)
Diffstat (limited to 'lisp/nxml/nxml-mode.el')
-rw-r--r-- | lisp/nxml/nxml-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
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") |