From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Opening an odt file - problem solved Date: Thu, 24 May 2012 21:54:54 +0530 Message-ID: <8162blim21.fsf@gmail.com> References: <4FB7733E.7060900@chrikro.net> <8162brp44o.fsf@gmail.com> <87boldkjjw.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36021) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXaqk-0000wO-SC for emacs-orgmode@gnu.org; Thu, 24 May 2012 12:25:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXaqe-00006p-QD for emacs-orgmode@gnu.org; Thu, 24 May 2012 12:25:18 -0400 In-Reply-To: <87boldkjjw.fsf@gnu.org> (Bastien's message of "Thu, 24 May 2012 11:36:03 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: eol , "itmejl@chrikro.net" Bastien writes: > Hi Jambunathan, > > Jambunathan K writes: > >>> So if want to be able to open odt files created with orgmode odt >>> exporter you have to have nxml-auto-insert-xml-declaration-flag set to >>> nil. >> >> Thanks for writing this down. It seems you aren't insisting on a fix. > > I think the fix would be nice to have. > > Can you fix it? OK. Fixed in both maint and master. The exported ODT file will not have multiple XML declrations. I see that there is a bug in nxml-mode. I file a bug report against Emacs sometime soon. The bug is: When `nxml-auto-insert-xml-declaration-flag' is on, if one opens a ODT file in archive mode and presses RET on say content.xml, an "extra" XML declaration is added. (i.e., Emacs tampers with XML file) This shouldn't happen. > Thanks,