all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Matt Price <moptop99@gmail.com>
To: Org Mode <emacs-orgmode@gnu.org>
Subject: "cannot Revert nonexistent file" on odt export
Date: Mon, 2 Jan 2017 20:59:48 -0500	[thread overview]
Message-ID: <CAN_Dec8XNs8w69kvq0fka8wiFbm4fr8y4Q750FgVNi4v-nd+yw@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1903 bytes --]

I tried and then reverted a very simple change ot ox-odt.el -- I wanted to
export a unicode symbol instead of [ ] for an empty checkbox.

After this, odt export fails mysteriously with the following:

------------
Wrote /tmp/odt-3348W1J/meta.xml
Using vacuous schema
OpenDocument export failed: Cannot revert nonexistent file
/tmp/odt-3348W1J/styles.xml
Result: "OpenDocument export failed: Cannot revert nonexistent file
/tmp/odt-3348W1J/styles.xml"
------------

I tried instrumenting org-odt-export-to-odt but was not able to narrow the
error down further than:

(org-odt--export-wrap
       outfile
       (let* ((org-odt-embedded-images-count 0)
          (org-odt-embedded-formulas-count 0)
          (org-odt-automatic-styles nil)
          (org-odt-object-counters nil)
          ;; Let `htmlfontify' know that we are interested in collecting
          ;; styles.
          (hfy-user-sheet-assoc nil))
     ;; Initialize content.xml and kick-off the export process.
     (let ((output (org-export-as 'odt subtreep visible-only nil ext-plist))
           (out-buf (progn
              (require 'nxml-mode)
              (let ((nxml-auto-insert-xml-declaration-flag nil))
                (find-file-noselect
                 (concat org-odt-zip-dir "content.xml") t)))))
       (with-current-buffer out-buf (erase-buffer) (insert output)))))


i don't seem to be able to instrument the org-odt--export-wrap macro, but
maybe the error report comes from this section around line 4067:

(error
    ;; Cleanup work directory and work files.
    (funcall --cleanup-xml-buffers)
    (message "OpenDocument export failed: %s"
         (error-message-string err)

This is with a pretty recent git master w/ a few changes applied only to
ox-html.el.

~git diff master~

shows no changes to ox-odt.el, but I restarted emacs and restarted my
laptop just in case -- the problem still persists.

Thanks!

Matt

[-- Attachment #2: Type: text/html, Size: 2369 bytes --]

             reply	other threads:[~2017-01-03  1:59 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-01-03  1:59 Matt Price [this message]
2017-01-03  3:46 ` "cannot Revert nonexistent file" on odt export Matt Price

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

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

  git send-email \
    --in-reply-to=CAN_Dec8XNs8w69kvq0fka8wiFbm4fr8y4Q750FgVNi4v-nd+yw@mail.gmail.com \
    --to=moptop99@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.