[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] use of 'system in ox-odt.el

From: Matt Price
Subject: [O] use of 'system in ox-odt.el
Date: Tue, 19 May 2015 10:45:16 -0400


When I export-and-open to odt, org doesn't open the resultant odt, even though I get a message:

Running xdg-open /home/matt/RLG231/RLG231Syllabus.odt...done

org-open-file works fine on links in an org buffer, and an anser on the following stackoverflow page suggests the issue is in ox-odt.el:


Below is a git diff for the suggested change:

diff --git a/lisp/ox-odt.el b/lisp/ox-odt.el
index 163f580..80650b1 100644
--- a/lisp/ox-odt.el
+++ b/lisp/ox-odt.el
@@ -94,7 +94,7 @@
     (?O "As ODT file and open"
         (lambda (a s v b)
           (if a (org-odt-export-to-odt t s v)
-        (org-open-file (org-odt-export-to-odt nil s v) 'system))))))
+        (org-open-file (org-odt-export-to-odt nil s v) ))))))
   '((:odt-styles-file "ODT_STYLES_FILE" nil nil t)
     (:description "DESCRIPTION" nil nil newline)


I'm not sure what 'system does in the changed line -- the documentation suggests a non-nil argument here will result in the odt file being opened in a buffer rather than in a browser. Nocolas, others, does this look like a bug? sorry I don't know more. 


reply via email to

[Prev in Thread] Current Thread [Next in Thread]