emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Jambunathan K <kjambunathan@gmail.com>
To: Bastien <bzg@gnu.org>
Cc: eol <emacs-orgmode@gnu.org>, "itmejl@chrikro.net" <itmejl@chrikro.net>
Subject: Re: Opening an odt file - problem solved
Date: Fri, 25 May 2012 19:27:51 +0530	[thread overview]
Message-ID: <81ehq8mkgw.fsf@gmail.com> (raw)
In-Reply-To: <87likhee7f.fsf@gnu.org> (Bastien's message of "Thu, 24 May 2012 18:28:04 +0200")

Bastien <bzg@gnu.org> writes:

> Jambunathan K <kjambunathan@gmail.com> 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.

  reply	other threads:[~2012-05-25 13:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-19 10:17 Opening an odt file - problem solved itmejl
2012-05-19 12:06 ` Achim Gratz
2012-05-20  9:56 ` Jambunathan K
2012-05-24  9:36   ` Bastien
2012-05-24 16:24     ` Jambunathan K
2012-05-24 16:28       ` Bastien
2012-05-25 13:57         ` Jambunathan K [this message]
2012-05-25 21:17           ` Bastien
2012-05-24 16:30       ` Jambunathan K

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=81ehq8mkgw.fsf@gmail.com \
    --to=kjambunathan@gmail.com \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=itmejl@chrikro.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).