From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: use of 'system in ox-odt.el Date: Tue, 19 May 2015 10:45:16 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c353e6dd7b470516705b67 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39153) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yuilo-0001l7-IT for emacs-orgmode@gnu.org; Tue, 19 May 2015 10:45:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yuili-0004PT-OP for emacs-orgmode@gnu.org; Tue, 19 May 2015 10:45:24 -0400 Received: from mail-la0-x236.google.com ([2a00:1450:4010:c03::236]:36338) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yuili-0004Of-GV for emacs-orgmode@gnu.org; Tue, 19 May 2015 10:45:18 -0400 Received: by lagv1 with SMTP id v1so27949224lag.3 for ; Tue, 19 May 2015 07:45:17 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org Mode --001a11c353e6dd7b470516705b67 Content-Type: text/plain; charset=UTF-8 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 --001a11c353e6dd7b470516705b67 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
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 th= e following stackoverflow page suggests the issue is in ox-odt.el:

<= a href=3D"http://stackoverflow.com/questions/24434854/emacs-org-odt-export-= as-odf-and-open-odt-outside-emacs">http://stackoverflow.com/questions/24434= 854/emacs-org-odt-export-as-odf-and-open-odt-outside-emacs

Below is a git diff for the suggested change:

diff --git a/lis= p/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 @@
=C2=A0=C2=A0=C2= =A0=C2=A0 (?O "As ODT file and open"
=C2=A0=C2=A0=C2=A0=C2=A0 = =C2=A0=C2=A0=C2=A0 (lambda (a s v b)
=C2=A0=C2=A0=C2=A0=C2=A0 =C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 (if a (org-odt-export-to-odt t s v)
-=C2=A0=C2=A0= =C2=A0 =C2=A0=C2=A0=C2=A0 (org-open-file (org-odt-export-to-odt nil s v) &#= 39;system))))))
+=C2=A0=C2=A0=C2=A0 =C2=A0=C2=A0=C2=A0 (org-open-file (o= rg-odt-export-to-odt nil s v) ))))))
=C2=A0=C2=A0 :options-alist
=C2= =A0=C2=A0 '((:odt-styles-file "ODT_STYLES_FILE" nil nil t)=C2=A0=C2=A0=C2=A0=C2=A0 (:description "DESCRIPTION" nil nil new= line)

----------------------------

I'm not sur= e 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? sorr= y I don't know more.=C2=A0

M
--001a11c353e6dd7b470516705b67--