From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Opening an odt file - problem solved Date: Fri, 25 May 2012 19:27:51 +0530 Message-ID: <81ehq8mkgw.fsf@gmail.com> References: <4FB7733E.7060900@chrikro.net> <8162brp44o.fsf@gmail.com> <87boldkjjw.fsf@gnu.org> <8162blim21.fsf@gmail.com> <87likhee7f.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44076) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SXv1y-00008J-SE for emacs-orgmode@gnu.org; Fri, 25 May 2012 09:58:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SXv1u-0004or-3h for emacs-orgmode@gnu.org; Fri, 25 May 2012 09:58:14 -0400 In-Reply-To: <87likhee7f.fsf@gnu.org> (Bastien's message of "Thu, 24 May 2012 18:28:04 +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: > Jambunathan K writes: > >>> Can you fix it? >> >> OK. Fixed in both maint and master. The exported ODT file will not >> have multiple XML declrations. > > Great, thanks a lot! This fix is back-firing. I have pushed an updated fix. I ignored the following warning Warning: defvar ignored because nxml-auto-insert-xml-declaration-flag is let-bound which leads to the following error while creating a new xml file File mode specification error: (void-variable nxml-auto-insert-xml-declaration-flag) To workaround above issue (i.e., if this fix is not applied for whatever reasons), make sure you do M-x load-library RET nxml-mode RET before starting a ODT export or add a (require 'nxml-mode) to your init file. Note:: nxml-mode is not really needed for ODT export to go through [1]. I will remove this dependency for the new exporter (org-e-odt.el) but retain it for the current exporter (org-odt.el) [2]. Footnotes: [1] nxml-mode is triggered because of the auto-mode activities on XML buffer. The mode chosen by auto-mode would depend upon user configuration and it is not guaranteed to be nxml-mode in all cases. [2] I don't want to distrub the stability of org-odt.el in Emacs-24.1 due to last minute changes.