emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* use of 'system in ox-odt.el
@ 2015-05-19 14:45 Matt Price
  2015-05-19 14:57 ` Rasmus
  0 siblings, 1 reply; 12+ messages in thread
From: Matt Price @ 2015-05-19 14:45 UTC (permalink / raw)
  To: Org Mode

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

Hi,

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:

http://stackoverflow.com/questions/24434854/emacs-org-odt-export-as-odf-and-open-odt-outside-emacs

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) ))))))
   :options-alist
   '((: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.

M

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

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

end of thread, other threads:[~2015-05-21 17:31 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-19 14:45 use of 'system in ox-odt.el Matt Price
2015-05-19 14:57 ` Rasmus
     [not found]   ` <CAN_Dec_p7ZsHFKHpS7ha62Rq0apawmqXBj5Jho1ceZ1d05SLKw@mail.gmail.com>
2015-05-19 18:19     ` Matt Price
2015-05-19 20:38       ` Suvayu Ali
2015-05-20  9:50         ` Rasmus
2015-05-20 11:03           ` Suvayu Ali
2015-05-20 11:21             ` Rasmus
2015-05-20 17:42               ` Suvayu Ali
2015-05-21  0:29                 ` Matt Price
2015-05-21  8:18                   ` Rasmus
2015-05-21 15:21                     ` Matt Price
2015-05-21 17:30                       ` Rasmus

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