From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Price Subject: Re: use of 'system in ox-odt.el Date: Tue, 19 May 2015 14:19:10 -0400 Message-ID: References: <87vbfopqd6.fsf@gmx.us> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c2870ad1c72705167358ca Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yum6j-00038K-1r for emacs-orgmode@gnu.org; Tue, 19 May 2015 14:19:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yum6h-0006eK-SH for emacs-orgmode@gnu.org; Tue, 19 May 2015 14:19:12 -0400 Received: from mail-la0-x232.google.com ([2a00:1450:4010:c03::232]:35694) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yum6h-0006e9-FN for emacs-orgmode@gnu.org; Tue, 19 May 2015 14:19:11 -0400 Received: by labbd9 with SMTP id bd9so38021780lab.2 for ; Tue, 19 May 2015 11:19:10 -0700 (PDT) In-Reply-To: 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 --001a11c2870ad1c72705167358ca Content-Type: text/plain; charset=UTF-8 Resenting to list (sorry rasmus) ---------- Forwarded message ---------- From: "Matt Price" Date: May 19, 2015 11:04 Subject: Re: [O] use of 'system in ox-odt.el To: "Rasmus" Cc: On Tue, May 19, 2015 at 10:57 AM, Rasmus wrote: > Matt Price writes: > > > 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: > > With your change it open the odt file as a tar-mode file from Emacs -q. > Without your change it doesn't open it at all. BTW: My Emacs also doesn't > open html exports in Fx files when I use C-c C-e h-o. I never tried to > debug it though... > > Yeah, I just got that too -- I realized I hadn't been testing it in the right environment, shoot. this modification worked for me (also form the same forum): (setcdr (assq 'system org-file-apps-defaults-gnu ) '(call-process "xdg-open" nil 0 nil file)) Not sure why this should work when the default fails. Fx opens html exports for me with C-c C-e h-o -- also not sure why that should work and odt fail. m > Rasmus > > -- > 9000! > > > --001a11c2870ad1c72705167358ca Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Resenting to list (sorry rasmus)

---------- Forwarded message ----------
From:= "Matt Price" <moptop99@= gmail.com>
Date: May 19, 2015 11:04
Subject: Re: [O] use of &#= 39;system in ox-odt.el
To: "Rasmus" <rasmus@gmx.us>
Cc:



On= Tue, May 19, 2015 at 10:57 AM, Rasmus <rasmus@gmx.us> wrote:
Matt Price <moptop99@gmail.com= > writes:

> 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:

With your change it open the odt file as a tar-mode file from Emacs = -q.
Without your change it doesn't open it at all.=C2=A0 BTW: My Emacs also= doesn't
open html exports in Fx files when I use C-c C-e h-o.=C2=A0 I never tried t= o
debug it though...


Yeah, I just got that too -- I realized I hadn't been testing it = in the right environment, shoot.=C2=A0 this modification worked for me (als= o form the same forum):


=C2=A0(setcdr (assq 'system org-file= -apps-defaults-gnu ) '(call-process "xdg-open" nil 0 nil file= ))

Not sure why this should work when the default fails.= =C2=A0 Fx opens html exports for me with C-c C-e h-o -- also not sure why t= hat should work and odt fail.=C2=A0

m

=

Rasmus

--
9000!



--001a11c2870ad1c72705167358ca--