]> git.eshelyaron.com Git - emacs.git/commit
Only insert XML declarations in nxml-mode when the buffer is empty
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 27 Jul 2019 12:01:10 +0000 (14:01 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 27 Jul 2019 12:01:10 +0000 (14:01 +0200)
commitd4fce7394345233026e6b427d90e0debe6c3e89e
treec8bc1f0f13f3da2983237ae814c098d078d73b60
parent60511bd89dbc9cd5a3ee2bb615a118cb379fb956
Only insert XML declarations in nxml-mode when the buffer is empty

* lisp/nxml/nxml-mode.el (nxml-mode): Don't insert the XML
declaration unless it's an empty buffer (bug#24978).  This avoids
the problem of the declaration being inserted by mistake when
opening XML files from archives and the like -- the file doesn't
exist on the file system there, either, so it would typically lead
to doubled XML declarations.
lisp/nxml/nxml-mode.el