emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* New exporter (org-e-odt) not creating content.xml
@ 2012-11-26 22:44 Ista Zahn
  2012-11-27  3:27 ` Jambunathan K
  2012-11-27  8:40 ` Giovanni Ridolfi
  0 siblings, 2 replies; 11+ messages in thread
From: Ista Zahn @ 2012-11-26 22:44 UTC (permalink / raw)
  To: emacs-orgmode Mailinglist

I can't seem to get the new odt exporter working on my Windows machine
at work (it works fine on Linux at home). Specifically, when I call
'M-x export-dispatch o o'  I get an odt archive with the following
contents.

M Filemode      Length  Date         Time      File
- ----------  --------  -----------  --------  ----------
  -rw-rw-rw-        39  26-Nov-2012  17:31:16  mimetype
  drwxrwxrwx         0  26-Nov-2012  17:31:16  meta-inf/
  -rw-rw-rw-       782  26-Nov-2012  17:31:16  meta.xml
  -rw-rw-rw-     66559  26-Nov-2012  17:31:16  styles.xml
- ----------  --------  -----------  --------  ----------
                 67380                         4 files

Comparing with the old exporter (i.e., 'C-e o') I find

M Filemode      Length  Date         Time      File
- ----------  --------  -----------  --------  ---------------------
  -rw-rw-rw-        39  26-Nov-2012  17:31:00  mimetype
  -rw-rw-rw-     25556  26-Nov-2012  17:31:00  content.xml
  drwxrwxrwx         0  26-Nov-2012  17:31:00  meta-inf/
  -rw-rw-rw-       573  26-Nov-2012  17:31:00  META-INF/manifest.xml
  -rw-rw-rw-       807  26-Nov-2012  17:31:00  meta.xml
  -rw-rw-rw-     67037  26-Nov-2012  17:31:00  styles.xml
- ----------  --------  -----------  --------  ---------------------
                 94012                         6 files

So it seems that the new exporter is not creating content.xml, or
META-INF/manifest.xml. Again this only happens on Windows. It is
reproducible every time, and is reproducible starting with emacs -q
and then loading only org and org-e-odt.

Thanks for any suggestions, and please let me know what other
information I can provide to make it easier for you to help me.

Best,
Ista

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: New exporter (org-e-odt) not creating content.xml
  2012-11-26 22:44 New exporter (org-e-odt) not creating content.xml Ista Zahn
@ 2012-11-27  3:27 ` Jambunathan K
  2012-11-27  8:26   ` Rainer Stengele
  2012-11-27  8:40 ` Giovanni Ridolfi
  1 sibling, 1 reply; 11+ messages in thread
From: Jambunathan K @ 2012-11-27  3:27 UTC (permalink / raw)
  To: Ista Zahn; +Cc: emacs-orgmode Mailinglist


I switched from Windows XP to a Debian few months back.  I am not sure
what would make content.xml disappear.  Let me investigate...

Meanwhile, check your messages buffer and see whether something looks
suspicious.  Following log is from Debian, it tells what the
exporter/Emacs is doing.  Specfically note where it creates the
content.xml file.

,----
| Wrote /tmp/odt-1968Zlo/meta.xml
| Using schema ~/src/org-mode/etc/schema/od-schema-v1.2-os.rnc [2 times]
| Saving file /tmp/odt-1968Zlo/styles.xml...
| Wrote /tmp/odt-1968Zlo/styles.xml
| Wrote /tmp/odt-1968Zlo/mimetype
| Using vacuous schema
| Saving file /tmp/odt-1968Zlo/META-INF/manifest.xml...
| Wrote /tmp/odt-1968Zlo/META-INF/manifest.xml
| Saving file /tmp/odt-1968Zlo/content.xml...
| Wrote /tmp/odt-1968Zlo/content.xml
| (No changes need to be saved)
| Creating ODT file...
| Running zip -mX0 test-new.odt mimetype
| Running zip -rmTq test-new.odt .
| Created /home/kjambunathan/Desktop/scraps/test-new.odt
| Parsing archive file...done.
| Running soffice -no-oosplash --writer /home/kjambunathan/Desktop/scraps/test-new.odt...done
`----


Ista Zahn <istazahn@gmail.com> writes:

> I can't seem to get the new odt exporter working on my Windows machine
> at work (it works fine on Linux at home). Specifically, when I call
> 'M-x export-dispatch o o'  I get an odt archive with the following
> contents.
>
> M Filemode      Length  Date         Time      File
> - ----------  --------  -----------  --------  ----------
>   -rw-rw-rw-        39  26-Nov-2012  17:31:16  mimetype
>   drwxrwxrwx         0  26-Nov-2012  17:31:16  meta-inf/
>   -rw-rw-rw-       782  26-Nov-2012  17:31:16  meta.xml
>   -rw-rw-rw-     66559  26-Nov-2012  17:31:16  styles.xml
> - ----------  --------  -----------  --------  ----------
>                  67380                         4 files
>
> Comparing with the old exporter (i.e., 'C-e o') I find
>
> M Filemode      Length  Date         Time      File
> - ----------  --------  -----------  --------  ---------------------
>   -rw-rw-rw-        39  26-Nov-2012  17:31:00  mimetype
>   -rw-rw-rw-     25556  26-Nov-2012  17:31:00  content.xml
>   drwxrwxrwx         0  26-Nov-2012  17:31:00  meta-inf/
>   -rw-rw-rw-       573  26-Nov-2012  17:31:00  META-INF/manifest.xml
>   -rw-rw-rw-       807  26-Nov-2012  17:31:00  meta.xml
>   -rw-rw-rw-     67037  26-Nov-2012  17:31:00  styles.xml
> - ----------  --------  -----------  --------  ---------------------
>                  94012                         6 files
>
> So it seems that the new exporter is not creating content.xml, or
> META-INF/manifest.xml. Again this only happens on Windows. It is
> reproducible every time, and is reproducible starting with emacs -q
> and then loading only org and org-e-odt.
>
> Thanks for any suggestions, and please let me know what other
> information I can provide to make it easier for you to help me.
>
> Best,
> Ista
>
>

-- 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: New exporter (org-e-odt) not creating content.xml
  2012-11-27  3:27 ` Jambunathan K
@ 2012-11-27  8:26   ` Rainer Stengele
  0 siblings, 0 replies; 11+ messages in thread
From: Rainer Stengele @ 2012-11-27  8:26 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode Mailinglist, Ista Zahn

Hi!

I am using

Windows 7
Org-mode version 7.9.2 (release_7.9.2-608-g6d01be
GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601) of 2012-08-29 on MARVIN
Libreoffice 3.6.1.2

Exporting works ok for me, contnet.xml is included:


Saving file
c:/Users/rainer/AppData/Roaming/tmp/odf-29744LyB/META-INF/manifest.xml...
Wrote c:/Users/rainer/AppData/Roaming/tmp/odf-29744LyB/META-INF/manifest.xml
Saving file c:/Users/rainer/AppData/Roaming/tmp/odf-29744LyB/content.xml...
Wrote c:/Users/rainer/AppData/Roaming/tmp/odf-29744LyB/content.xml
OVERVIEW
CONTENTS...done
Using schema ~/.emacs.d/org/etc/schema/od-schema-v1.2-cs01.rnc
(No changes need to be saved)
Creating odt file...
Running zip -mX0 DIPLAN.odt mimetype
Running zip -rmTq DIPLAN.odt .
Created c:/Users/rainer/AppData/Roaming/org/DIPLAN/DIPLAN.odt

Cheers,
Rainer


Am 27.11.2012 04:27, schrieb Jambunathan K:
> 
> I switched from Windows XP to a Debian few months back.  I am not sure
> what would make content.xml disappear.  Let me investigate...
> 
> Meanwhile, check your messages buffer and see whether something looks
> suspicious.  Following log is from Debian, it tells what the
> exporter/Emacs is doing.  Specfically note where it creates the
> content.xml file.
> 
> ,----
> | Wrote /tmp/odt-1968Zlo/meta.xml
> | Using schema ~/src/org-mode/etc/schema/od-schema-v1.2-os.rnc [2 times]
> | Saving file /tmp/odt-1968Zlo/styles.xml...
> | Wrote /tmp/odt-1968Zlo/styles.xml
> | Wrote /tmp/odt-1968Zlo/mimetype
> | Using vacuous schema
> | Saving file /tmp/odt-1968Zlo/META-INF/manifest.xml...
> | Wrote /tmp/odt-1968Zlo/META-INF/manifest.xml
> | Saving file /tmp/odt-1968Zlo/content.xml...
> | Wrote /tmp/odt-1968Zlo/content.xml
> | (No changes need to be saved)
> | Creating ODT file...
> | Running zip -mX0 test-new.odt mimetype
> | Running zip -rmTq test-new.odt .
> | Created /home/kjambunathan/Desktop/scraps/test-new.odt
> | Parsing archive file...done.
> | Running soffice -no-oosplash --writer /home/kjambunathan/Desktop/scraps/test-new.odt...done
> `----
> 
> 
> Ista Zahn <istazahn@gmail.com> writes:
> 
>> I can't seem to get the new odt exporter working on my Windows machine
>> at work (it works fine on Linux at home). Specifically, when I call
>> 'M-x export-dispatch o o'  I get an odt archive with the following
>> contents.
>>
>> M Filemode      Length  Date         Time      File
>> - ----------  --------  -----------  --------  ----------
>>   -rw-rw-rw-        39  26-Nov-2012  17:31:16  mimetype
>>   drwxrwxrwx         0  26-Nov-2012  17:31:16  meta-inf/
>>   -rw-rw-rw-       782  26-Nov-2012  17:31:16  meta.xml
>>   -rw-rw-rw-     66559  26-Nov-2012  17:31:16  styles.xml
>> - ----------  --------  -----------  --------  ----------
>>                  67380                         4 files
>>
>> Comparing with the old exporter (i.e., 'C-e o') I find
>>
>> M Filemode      Length  Date         Time      File
>> - ----------  --------  -----------  --------  ---------------------
>>   -rw-rw-rw-        39  26-Nov-2012  17:31:00  mimetype
>>   -rw-rw-rw-     25556  26-Nov-2012  17:31:00  content.xml
>>   drwxrwxrwx         0  26-Nov-2012  17:31:00  meta-inf/
>>   -rw-rw-rw-       573  26-Nov-2012  17:31:00  META-INF/manifest.xml
>>   -rw-rw-rw-       807  26-Nov-2012  17:31:00  meta.xml
>>   -rw-rw-rw-     67037  26-Nov-2012  17:31:00  styles.xml
>> - ----------  --------  -----------  --------  ---------------------
>>                  94012                         6 files
>>
>> So it seems that the new exporter is not creating content.xml, or
>> META-INF/manifest.xml. Again this only happens on Windows. It is
>> reproducible every time, and is reproducible starting with emacs -q
>> and then loading only org and org-e-odt.
>>
>> Thanks for any suggestions, and please let me know what other
>> information I can provide to make it easier for you to help me.
>>
>> Best,
>> Ista
>>
>>
> 

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: New exporter (org-e-odt) not creating content.xml
  2012-11-26 22:44 New exporter (org-e-odt) not creating content.xml Ista Zahn
  2012-11-27  3:27 ` Jambunathan K
@ 2012-11-27  8:40 ` Giovanni Ridolfi
  2012-11-27 14:55   ` Ista Zahn
  1 sibling, 1 reply; 11+ messages in thread
From: Giovanni Ridolfi @ 2012-11-27  8:40 UTC (permalink / raw)
  To: Ista Zahn, emacs-orgmode Mailinglist; +Cc: Rainer Stengele, Jambunathan K

Hi, Ista,


Da: Ista Zahn <istazahn@gmail.com>
Inviato: Lunedì 26 Novembre 2012 23:44

> I can't seem to get the new odt exporter working on my Windows machine
> at work (it works fine on Linux at home). 
[...]

> So it seems that the new exporter is not creating content.xml, or
> META-INF/manifest.xml. Again this only happens on Windows. It is
> reproducible every time, and is reproducible starting with emacs -q
> and then loading only org and org-e-odt.

>

> Specifically, when I call
> 'M-x export-dispatch o o'  I get an odt archive with the following
> contents.
> 
> M Filemode      Length  Date         Time      File
>- ----------  --------  -----------  --------  ----------
>  -rw-rw-rw-        39  26-Nov-2012  17:31:16  mimetype
>  drwxrwxrwx         0  26-Nov-2012  17:31:16  meta-inf/
>  -rw-rw-rw-       782  26-Nov-2012  17:31:16  meta.xml
>  -rw-rw-rw-     66559  26-Nov-2012  17:31:16  styles.xml
>- ----------  --------  -----------  --------  ----------
>                 67380                         4 files

Like Rainer I cannot reproduce.

what is
-  your org-version ?
-  emacs version?
- are you under cygwin ?

Here:
Org-mode version 7.9.2 (d344fda @ 
GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601) of 2012-08-29 on MARVIN
Windows 7

with my .emacs: 
(require 'org)
... 
(require 'org-export) 
(require 'org-e-odt)
....

I call with M-x export-dispatch  3 o o 
(3 is to select the subtree)

With this subtree:
-----------------------------------
*** test
test B /b/ *g*   +Carsten+
**** test 2
hello
---------------------------------------

**** *Message*  buffer:
Using vacuous schema
Unknown LaTeX option.  Forcing verbatim.
Formatting LaTeX using verbatim
Wrote c:/Users/. ./AppData/Local/Temp/odt-3456fvm/meta.xml
Using schema c:/Users/. ./programs/emacs-o/org/etc/schema/od-schema-v1.2-cs01.rnc [2 times]
Saving file c:/Users/. ./AppData/Local/Temp/odt-3456fvm/styles.xml...
Wrote c:/Users/. ./AppData/Local/Temp/odt-3456fvm/styles.xml
Wrote c:/Users/. ./AppData/Local/Temp/odt-3456fvm/mimetype
Using vacuous schema
Saving file c:/Users/. ./AppData/Local/Temp/odt-3456fvm/META-INF/manifest.xml...
Wrote c:/Users/. ./AppData/Local/Temp/odt-3456fvm/META-INF/manifest.xml
Saving file c:/Users/. ./AppData/Local/Temp/odt-3456fvm/content.xml...
Wrote c:/Users/. ./AppData/Local/Temp/odt-3456fvm/content.xml
(No changes need to be saved)
Creating ODT file...
Running c:/Users/. ./programs/zip/bin/zip -mX0 test.odt mimetype
Running c:/Users/. ./programs/zip/bin/zip -rmTq test.odt .
Created c:/Users/. ./AppData/Roaming/test.odt
Parsing archive file...done.


**** file  test.odt:

M Filemode      Length  Date         Time      File
- ----------  --------  -----------  --------  ---------------------
  -rw-rw-rw-        39  27-Nov-2012  09:23:16  mimetype
  -rw-rw-rw-     21823  27-Nov-2012  09:23:16  content.xml
  drwxrwxrwx         0  27-Nov-2012  09:23:16  meta-inf/
  -rw-rw-rw-       573  27-Nov-2012  09:23:16  META-INF/manifest.xml
  -rw-rw-rw-       818  27-Nov-2012  09:23:16  meta.xml
  -rw-rw-rw-     66559  27-Nov-2012  09:23:16  styles.xml
- ----------  --------  -----------  --------  ---------------------
                 89812                         6 files


cheers,
Giovanni

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: New exporter (org-e-odt) not creating content.xml
  2012-11-27  8:40 ` Giovanni Ridolfi
@ 2012-11-27 14:55   ` Ista Zahn
       [not found]     ` <87624rowx5.fsf@gmail.com>
  2012-11-28 15:15     ` Giovanni Ridolfi
  0 siblings, 2 replies; 11+ messages in thread
From: Ista Zahn @ 2012-11-27 14:55 UTC (permalink / raw)
  To: Giovanni Ridolfi
  Cc: Rainer Stengele, emacs-orgmode Mailinglist, Jambunathan K

Hi all,

On Tue, Nov 27, 2012 at 3:40 AM, Giovanni Ridolfi
<giovanni.ridolfi@yahoo.it> wrote:
> Hi, Ista,
>
>
> Da: Ista Zahn <istazahn@gmail.com>
> Inviato: Lunedì 26 Novembre 2012 23:44
>
>> I can't seem to get the new odt exporter working on my Windows machine
>> at work (it works fine on Linux at home).
> [...]
>
>> So it seems that the new exporter is not creating content.xml, or
>> META-INF/manifest.xml. Again this only happens on Windows. It is
>> reproducible every time, and is reproducible starting with emacs -q
>> and then loading only org and org-e-odt.
>
>>
>
>> Specifically, when I call
>> 'M-x export-dispatch o o'  I get an odt archive with the following
>> contents.
>>
>> M Filemode      Length  Date         Time      File
>>- ----------  --------  -----------  --------  ----------
>>  -rw-rw-rw-        39  26-Nov-2012  17:31:16  mimetype
>>  drwxrwxrwx         0  26-Nov-2012  17:31:16  meta-inf/
>>  -rw-rw-rw-       782  26-Nov-2012  17:31:16  meta.xml
>>  -rw-rw-rw-     66559  26-Nov-2012  17:31:16  styles.xml
>>- ----------  --------  -----------  --------  ----------
>>                 67380                         4 files
>
> Like Rainer I cannot reproduce.
>
> what is
> -  your org-version ?
'M-org-version' produces

Org-mode version N/A (N/A @ c:/Documents and
Settings/IZAHN/.emacs.d/izahn/org-mode/lisp/)

but this is orgmode from git, updated yesterday.

> -  emacs version?
GNU Emacs 24.2.1 (i386-mingw-nt5.1.2600) of 2012-08-28 on MARVIN
> - are you under cygwin ?
I have cygwin installed, but emacs is the windows version from
http://ftp.gnu.org/gnu/emacs/windows/

The OS is Windows XP professional with service pack 3.
>
> Here:
> Org-mode version 7.9.2 (d344fda @
> GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601) of 2012-08-29 on MARVIN
> Windows 7
>
> with my .emacs:
> (require 'org)
> ...
> (require 'org-export)
> (require 'org-e-odt)

I started emacs with emacs -q and evaluated the following lines with 'C-x-e':

;; Look recursively in .emacs.d for elisp files and packages
(let ((default-directory "~/.emacs.d/"))
  (normal-top-level-add-to-load-path '("."))
  (normal-top-level-add-subdirs-to-load-path))

;; just to make sure...
(mapc (lambda (path) (add-to-list 'load-path path))
      '("~/.emacs.d/elpa/elnode-0.9.9"
	"~/.emacs.d/izahn/org-mode/lisp"
	"~/.emacs.d/izahn/org-mode/contrib/lisp"
	"~/.emacs.d/izahn/org-ehtml/src"
	"~/.emacs.d/izahn/org-ehtml/test/lisp"))

(require 'org)
(require 'org-export)
(require 'org-e-odt)

> ....
>
> I call with M-x export-dispatch  3 o o
> (3 is to select the subtree)

I also tried selecting just the subtree, with the same results, i.e.,
no content.xml

>
> With this subtree:
> -----------------------------------
> *** test
> test B /b/ *g*   +Carsten+
> **** test 2
> hello
> ---------------------------------------
>
> **** *Message*  buffer:
> Using vacuous schema
> Unknown LaTeX option.  Forcing verbatim.
> Formatting LaTeX using verbatim
> Wrote c:/Users/. ./AppData/Local/Temp/odt-3456fvm/meta.xml
> Using schema c:/Users/. ./programs/emacs-o/org/etc/schema/od-schema-v1.2-cs01.rnc [2 times]
> Saving file c:/Users/. ./AppData/Local/Temp/odt-3456fvm/styles.xml...
> Wrote c:/Users/. ./AppData/Local/Temp/odt-3456fvm/styles.xml
> Wrote c:/Users/. ./AppData/Local/Temp/odt-3456fvm/mimetype
> Using vacuous schema
> Saving file c:/Users/. ./AppData/Local/Temp/odt-3456fvm/META-INF/manifest.xml...
> Wrote c:/Users/. ./AppData/Local/Temp/odt-3456fvm/META-INF/manifest.xml
> Saving file c:/Users/. ./AppData/Local/Temp/odt-3456fvm/content.xml...
> Wrote c:/Users/. ./AppData/Local/Temp/odt-3456fvm/content.xml
> (No changes need to be saved)
> Creating ODT file...
> Running c:/Users/. ./programs/zip/bin/zip -mX0 test.odt mimetype
> Running c:/Users/. ./programs/zip/bin/zip -rmTq test.odt .
> Created c:/Users/. ./AppData/Roaming/test.odt
> Parsing archive file...done.

My *Messages* buffer shows

Using vacuous schema
OVERVIEW
LaTeX to MathML converter not available.
Formatting LaTeX using verbatim
Wrote c:/DOCUME~1/IZAHN/LOCALS~1/Temp/odt-3688Mws/meta.xml
Using schema ~/.emacs.d/izahn/org-mode/etc/schema/od-schema-v1.2-cs01.rnc
[2 times]
Saving file c:/Documents and Settings/IZAHN/Local
Settings/Temp/odt-3688Mws/styles.xml...
Wrote c:/Documents and Settings/IZAHN/Local Settings/Temp/odt-3688Mws/styles.xml
Wrote c:/DOCUME~1/IZAHN/LOCALS~1/Temp/odt-3688Mws/mimetype
Using vacuous schema
Creating ODT file...
Running zip -mX0 test.odt mimetype
Running zip -rmTq test.odt .
Created c:/Documents and Settings/IZAHN/Desktop/test.odt
Parsing archive file...done.

>
>
> **** file  test.odt:
>
> M Filemode      Length  Date         Time      File
> - ----------  --------  -----------  --------  ---------------------
>   -rw-rw-rw-        39  27-Nov-2012  09:23:16  mimetype
>   -rw-rw-rw-     21823  27-Nov-2012  09:23:16  content.xml
>   drwxrwxrwx         0  27-Nov-2012  09:23:16  meta-inf/
>   -rw-rw-rw-       573  27-Nov-2012  09:23:16  META-INF/manifest.xml
>   -rw-rw-rw-       818  27-Nov-2012  09:23:16  meta.xml
>   -rw-rw-rw-     66559  27-Nov-2012  09:23:16  styles.xml
> - ----------  --------  -----------  --------  ---------------------
>                  89812                         6 files
>

My test.odt still shows
M Filemode      Length  Date         Time      File
- ----------  --------  -----------  --------  ----------
  -rw-rw-rw-        39  27-Nov-2012  09:51:56  mimetype
  drwxrwxrwx         0  27-Nov-2012  09:51:56  meta-inf/
  -rw-rw-rw-       782  27-Nov-2012  09:51:56  meta.xml
  -rw-rw-rw-     66559  27-Nov-2012  09:51:56  styles.xml
- ----------  --------  -----------  --------  ----------
                 67380                         4 files

Also, I just noticed that a content.xml buffer is created, with what
looks like the correct content. It's just not making it into the .odt
archive!

Thanks for any further pointers!
Ista

>
> cheers,
> Giovanni

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Fwd: New exporter (org-e-odt) not creating content.xml
       [not found]     ` <87624rowx5.fsf@gmail.com>
@ 2012-11-27 16:21       ` Jambunathan K
       [not found]       ` <CA+vqiLFWEkHWEGs7z=AvJjDOFy7HrHSqGNjj+9mgjfnQzyzYJg@mail.gmail.com>
  1 sibling, 0 replies; 11+ messages in thread
From: Jambunathan K @ 2012-11-27 16:21 UTC (permalink / raw)
  To: emacs-orgmode

---------- Forwarded message ----------
From: Jambunathan K <kjambunathan@gmail.com>
Date: Tue, 27 Nov 2012 21:33:34 +0530
Subject: Re: New exporter (org-e-odt) not creating content.xml
To: Ista Zahn <istazahn@gmail.com>

Ista Zahn <istazahn@gmail.com> writes:

> Also, I just noticed that a content.xml buffer is created, with what
> looks like the correct content. It's just not making it into the .odt
> archive!

I think I have some idea of what might be going wrong.

Create a ielm buffer with

    M-x ielm RET

and type out the following 4 lisp forms ONE-by-ONE.

(setq org-e-odt-zip-dir (file-name-as-directory (make-temp-file "odt-" t)))
(with-current-buffer (find-file-noselect (concat org-e-odt-zip-dir
"content.xml") t) (buffer-file-name))
(with-current-buffer (get-file-buffer (concat org-e-odt-zip-dir
"content.xml")) (save-buffer 0))
(get-file-buffer (concat org-e-odt-zip-dir "content.xml"))

In my case, the session looks like this.  Note that `ELISP>' you see
below is the command prompt.

    ,----
    | *** Welcome to IELM ***  Type (describe-mode) for help.
    | ELISP> (setq org-e-odt-zip-dir (file-name-as-directory
(make-temp-file "odt-" t)))
    | "/tmp/odt-4998J4g/"
    | ELISP> (with-current-buffer (find-file-noselect (concat
org-e-odt-zip-dir "content.xml") t) (buffer-file-name))
    | "/tmp/odt-4998J4g/content.xml"
    | ELISP> (with-current-buffer (get-file-buffer (concat
org-e-odt-zip-dir "content.xml")) (save-buffer 0))
    | nil
    | ELISP> (get-file-buffer (concat org-e-odt-zip-dir "content.xml"))
    | #<buffer content.xml<5>>
    | ELISP>
    `----

In my case, the 3rd line also prints the following in messages buffer

    ,----
    | Wrote /tmp/odt-4998J4g/content.xml
    `----

In your case, I suspect that the 3rd line will report an error and the
4th line will report a nil.  If this is true, then either my
understanding of `get-file-buffer' is incorrect or that
`get-file-buffer' is buggy.

Additional Note:

1. org-odt.el succeeds possibly because it doesn't use `get-file-buffer'
   at all.

2. Emacs is (confusingly) mangling filenames

    Wrote c:/Documents and Settings/IZAHN/Local
Settings/Temp/odt-3688Mws/styles.xml
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    Wrote c:/DOCUME~1/IZAHN/LOCALS~1/Temp/odt-3688Mws/mimetype
             ^^^^^^^^^^^^^^^^^^^^^^^
--

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: New exporter (org-e-odt) not creating content.xml
       [not found]       ` <CA+vqiLFWEkHWEGs7z=AvJjDOFy7HrHSqGNjj+9mgjfnQzyzYJg@mail.gmail.com>
@ 2012-11-27 17:39         ` Jambunathan K
  2012-11-27 17:46           ` Jambunathan K
  0 siblings, 1 reply; 11+ messages in thread
From: Jambunathan K @ 2012-11-27 17:39 UTC (permalink / raw)
  To: Ista Zahn; +Cc: emacs-orgmode


Ista

> Your suspicion is confirmed.
>
> If this is true, then either my
>> understanding of `get-file-buffer' is incorrect or that
>> `get-file-buffer' is buggy.
>
> Please let me know what I can do to help figure this out.

I have filed a bug:

    http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13013

Irrespective of what the Emacs maintainers feel about this issue, I will
push a fix.  (But fix will take couple of day's time to hit the repo.)

Thanks for the bug report.

Jambunathan K.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: New exporter (org-e-odt) not creating content.xml
  2012-11-27 17:39         ` Jambunathan K
@ 2012-11-27 17:46           ` Jambunathan K
  2012-11-27 19:25             ` Ista Zahn
  0 siblings, 1 reply; 11+ messages in thread
From: Jambunathan K @ 2012-11-27 17:46 UTC (permalink / raw)
  To: Ista Zahn; +Cc: emacs-orgmode

Jambunathan K <kjambunathan@gmail.com> writes:

> Ista
>
>> Your suspicion is confirmed.
>>
>> If this is true, then either my
>>> understanding of `get-file-buffer' is incorrect or that
>>> `get-file-buffer' is buggy.
>>
>> Please let me know what I can do to help figure this out.
>
> I have filed a bug:
>
>     http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13013
>
> Irrespective of what the Emacs maintainers feel about this issue, I will
> push a fix.  (But fix will take couple of day's time to hit the repo.)


To add to that 

As a temporary work around, you can also do
    M-x customize-variable RET temporary-file-directory RET

and point in to some directory that doesn't have spaces or long names.

With my (future) fix, the above customization may not be necessary.


> Jambunathan K.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: New exporter (org-e-odt) not creating content.xml
  2012-11-27 17:46           ` Jambunathan K
@ 2012-11-27 19:25             ` Ista Zahn
  0 siblings, 0 replies; 11+ messages in thread
From: Ista Zahn @ 2012-11-27 19:25 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode

Thank you, I'm currently working around this with

;; fix f'ed up windows temp directory
(if (eq system-type 'windows-nt)
  (setq temporary-file-directory "c:/tmp/")
)

in my init.el, and odt export is now working as expected.

Best,
Ista

On Tue, Nov 27, 2012 at 12:46 PM, Jambunathan K <kjambunathan@gmail.com> wrote:
> Jambunathan K <kjambunathan@gmail.com> writes:
>
>> Ista
>>
>>> Your suspicion is confirmed.
>>>
>>> If this is true, then either my
>>>> understanding of `get-file-buffer' is incorrect or that
>>>> `get-file-buffer' is buggy.
>>>
>>> Please let me know what I can do to help figure this out.
>>
>> I have filed a bug:
>>
>>     http://debbugs.gnu.org/cgi/bugreport.cgi?bug=13013
>>
>> Irrespective of what the Emacs maintainers feel about this issue, I will
>> push a fix.  (But fix will take couple of day's time to hit the repo.)
>
>
> To add to that
>
> As a temporary work around, you can also do
>     M-x customize-variable RET temporary-file-directory RET
>
> and point in to some directory that doesn't have spaces or long names.
>
> With my (future) fix, the above customization may not be necessary.
>
>
>> Jambunathan K.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: New exporter (org-e-odt) not creating content.xml
  2012-11-27 14:55   ` Ista Zahn
       [not found]     ` <87624rowx5.fsf@gmail.com>
@ 2012-11-28 15:15     ` Giovanni Ridolfi
  2012-11-28 16:17       ` Ista Zahn
  1 sibling, 1 reply; 11+ messages in thread
From: Giovanni Ridolfi @ 2012-11-28 15:15 UTC (permalink / raw)
  To: Ista Zahn
  Cc: Achim Gratz, Rainer Stengele, emacs-orgmode Mailinglist,
	Jambunathan K

Da: Ista Zahn <istazahn@gmail.com>
Inviato: Martedì 27 Novembre 2012 15:55

>> I can't seem to get the new odt exporter working on my Windows machine
>> at work (it works fine on Linux at home).
> [...]
>
>> So it seems that the new exporter is not creating content.xml, or
>> META-INF/manifest.xml. Again this only happens on Windows. It is
>> reproducible every time, and is reproducible starting with emacs -q
>> and then loading only org and org-e-odt.
>>
>
>> Specifically, when I call
>> 'M-x export-dispatch o o'  I get an odt archive with the following
>> contents.
>>
>> M Filemode      Length  Date         Time      File
>>- ----------  --------  -----------  --------  ----------
>>  -rw-rw-rw-        39  26-Nov-2012  17:31:16  mimetype
>>  drwxrwxrwx         0  26-Nov-2012  17:31:16  meta-inf/
>>  -rw-rw-rw-       782  26-Nov-2012  17:31:16  meta.xml
>>  -rw-rw-rw-     66559  26-Nov-2012  17:31:16  styles.xml
>>- ----------  --------  -----------  --------  ----------
>>                 67380                         4 files
>
> Like Rainer I cannot reproduce.
>
> what is
> -  your org-version ?
'M-org-version' produces

> Org-mode version N/A (N/A @ c:/Documents and
> Settings/IZAHN/.emacs.d/izahn/org-mode/lisp/)

> but this is orgmode from git, updated yesterday.
well I cannot trust you ;-)

I think you did not configure/build org properly (Achim may confirm here).

Please read the documentation (M-x org-info) and the worg page here:

http://orgmode.org/worg/org-hacks.html

and please, configure org properly. Then we can investigate if this behaviour is 
really a bug or is it due to misconfiguration.

> -  emacs version?
GNU Emacs 24.2.1 (i386-mingw-nt5.1.2600) of 2012-08-28 on MARVIN
>  emacs is the windows version fromhttp://ftp.gnu.org/gnu/emacs/windows/

The OS is Windows XP professional with service pack 3.
>
> Here:
> Org-mode version 7.9.2 (d344fda @
> GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601) of 2012-08-29 on MARVIN
> Windows 7

Same as me. 
Please check your configuration/activation.

> I started emacs with emacs -q and evaluated the following lines with 'C-x-e':
Is is not useful if you have not configured/activated org.


cheers,
Giovanni

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: New exporter (org-e-odt) not creating content.xml
  2012-11-28 15:15     ` Giovanni Ridolfi
@ 2012-11-28 16:17       ` Ista Zahn
  0 siblings, 0 replies; 11+ messages in thread
From: Ista Zahn @ 2012-11-28 16:17 UTC (permalink / raw)
  To: Giovanni Ridolfi
  Cc: Achim Gratz, Rainer Stengele, emacs-orgmode Mailinglist,
	Jambunathan K

On Wed, Nov 28, 2012 at 10:15 AM, Giovanni Ridolfi
<giovanni.ridolfi@yahoo.it> wrote:
> Da: Ista Zahn <istazahn@gmail.com>
> Inviato: Martedì 27 Novembre 2012 15:55
>
>>> I can't seem to get the new odt exporter working on my Windows machine
>>> at work (it works fine on Linux at home).
>> [...]
>>
>>> So it seems that the new exporter is not creating content.xml, or
>>> META-INF/manifest.xml. Again this only happens on Windows. It is
>>> reproducible every time, and is reproducible starting with emacs -q
>>> and then loading only org and org-e-odt.
>>>
>>
>>> Specifically, when I call
>>> 'M-x export-dispatch o o'  I get an odt archive with the following
>>> contents.
>>>
>>> M Filemode      Length  Date         Time      File
>>>- ----------  --------  -----------  --------  ----------
>>>  -rw-rw-rw-        39  26-Nov-2012  17:31:16  mimetype
>>>  drwxrwxrwx         0  26-Nov-2012  17:31:16  meta-inf/
>>>  -rw-rw-rw-       782  26-Nov-2012  17:31:16  meta.xml
>>>  -rw-rw-rw-     66559  26-Nov-2012  17:31:16  styles.xml
>>>- ----------  --------  -----------  --------  ----------
>>>                 67380                         4 files
>>
>> Like Rainer I cannot reproduce.
>>
>> what is
>> -  your org-version ?
> 'M-org-version' produces
>
>> Org-mode version N/A (N/A @ c:/Documents and
>> Settings/IZAHN/.emacs.d/izahn/org-mode/lisp/)
>
>> but this is orgmode from git, updated yesterday.
> well I cannot trust you ;-)
>
> I think you did not configure/build org properly (Achim may confirm here).
>
> Please read the documentation (M-x org-info)

Yes, I've read the documentation.

 and the worg page here:
>
> http://orgmode.org/worg/org-hacks.html

Is that really necessary? I keep org updated using the instructions at
http://orgmode.org/worg/org-faq.html#keeping-current-with-Org-mode-development.
"ad hoc code, quick hacks and workarounds" does not sound like what I
want...

>
> and please, configure org properly.

The only thing I see that I missed is "make autoloads", and indeed
after running this I get a sensible org-version:

Org-mode version 7.9.2 (release_7.9.2-638-g09cfdb @
/Users/izahn/.emacs.d/izahn/org-mode/lisp/)

Then we can investigate if this behaviour is
> really a bug or is it due to misconfiguration.

Fair enough. Unfortunately I'm not at my Windows machine today, so I
can't test to see if 'make autoloads' changed anything.

Best,
Ista

>
>> -  emacs version?
> GNU Emacs 24.2.1 (i386-mingw-nt5.1.2600) of 2012-08-28 on MARVIN
>>  emacs is the windows version fromhttp://ftp.gnu.org/gnu/emacs/windows/
>
> The OS is Windows XP professional with service pack 3.
>>
>> Here:
>> Org-mode version 7.9.2 (d344fda @
>> GNU Emacs 24.2.1 (i386-mingw-nt6.1.7601) of 2012-08-29 on MARVIN
>> Windows 7
>
> Same as me.
> Please check your configuration/activation.
>
>> I started emacs with emacs -q and evaluated the following lines with 'C-x-e':
> Is is not useful if you have not configured/activated org.
>
>
> cheers,
> Giovanni

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-11-28 16:18 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-26 22:44 New exporter (org-e-odt) not creating content.xml Ista Zahn
2012-11-27  3:27 ` Jambunathan K
2012-11-27  8:26   ` Rainer Stengele
2012-11-27  8:40 ` Giovanni Ridolfi
2012-11-27 14:55   ` Ista Zahn
     [not found]     ` <87624rowx5.fsf@gmail.com>
2012-11-27 16:21       ` Fwd: " Jambunathan K
     [not found]       ` <CA+vqiLFWEkHWEGs7z=AvJjDOFy7HrHSqGNjj+9mgjfnQzyzYJg@mail.gmail.com>
2012-11-27 17:39         ` Jambunathan K
2012-11-27 17:46           ` Jambunathan K
2012-11-27 19:25             ` Ista Zahn
2012-11-28 15:15     ` Giovanni Ridolfi
2012-11-28 16:17       ` Ista Zahn

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).