From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miguel Ruiz Subject: Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip Date: Sat, 30 Nov 2013 08:44:59 +0000 (GMT) Message-ID: <1385801099.31770.YahooMailNeo@web171905.mail.ir2.yahoo.com> Reply-To: Miguel Ruiz Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="1200650283-31886577-1385801099=:31770" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VmgAo-0004pc-C1 for emacs-orgmode@gnu.org; Sat, 30 Nov 2013 03:45:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VmgAh-0005TO-6l for emacs-orgmode@gnu.org; Sat, 30 Nov 2013 03:45:10 -0500 Received: from nm22-vm3.bullet.mail.ird.yahoo.com ([212.82.109.253]:26424) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1VmgAg-0005OF-Hg for emacs-orgmode@gnu.org; Sat, 30 Nov 2013 03:45:03 -0500 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: "emacs-orgmode@gnu.org" --1200650283-31886577-1385801099=:31770 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hello,=0A=0AI use cygwin only cli, so I depend on html, pdf and odt MSWindo= ws viewer.=0A=0AI could manage to add this code to my .emacs:=0A=0A(if (eq = system-type 'cygwin)=0A=A0(add-hook 'org-mode-hook=0A=A0 =A0 =A0 '(lambda (= )=0A=A0 =A0 =A0 =A0 =A0(delete '("\\.x?html?\\'" . default) org-file-apps)= =0A=A0 =A0 =A0 =A0 =A0(add-to-list 'org-file-apps '("\\.x?html?\\'" . "cygs= tart %s"))=0A=A0 =A0 =A0 =A0 =A0(delete '("\\.pdf\\'" . default) org-file-a= pps)=0A=A0 =A0 =A0 =A0 =A0(add-to-list 'org-file-apps '("\\.pdf\\'" . "cygs= tart %s"))=0A=A0 =A0 =A0 =A0 =A0(delete '("\\.odt\\'" . default) org-file-a= pps)=0A=A0 =A0 =A0 =A0 =A0(add-to-list 'org-file-apps '("\\.odt\\'" . "cygs= tart %s")))))=0A=0Aso I can org-open-file html/pdf/odt files successfully.= =0A=0ABut with (require 'ox-odt) + C-c C-e o O , my odt files open in emacs= instead of LibreOffice.=0A=0AI am aware of (org-open-file (org-odt-export-= to-odt nil s v) 'system) line in ox-odt.el:=A0=0A- If I run (org-open-file = "file.odt") I get the desired behaviour;=A0=0A- If I run (org-open-file "fi= le.odt" 'system) I get file.odt open in emacs as a zip file.=0A=0ASo:=0A=0A= - How can redefine or supress 'system in (org-open-file (org-odt-export-to-= odt nil s v) 'system) line in ox-odt.el?=0A=0A- May I propose to developers= to include (defconst org-file-apps-defaults-cygwin ... or similar?=0A=0A- = Could you help me in any other way?=0A=0AThank you so much.=0A=0AMiguel Rui= z,=0ASevilla (Spain). --1200650283-31886577-1385801099=:31770 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hell= o,

I use cygwin only cli, so I depend on html, pdf= and odt MSWindows viewer.

I could manage to add t= his code to my .emacs:

(if (eq system-type 'cygwin= )
 (add-hook 'org-mode-hook
      '= (lambda ()
         (delete '("\\.x?html= ?\\'" . default) org-file-apps)
         = ;(add-to-list 'org-file-apps '("\\.x?html?\\'" . "cygstart %s"))
=          (delete '("\\.pdf\\'" . default) org-file= -apps)
         (add-to-list 'org-file-a= pps '("\\.pdf\\'" . "cygstart %s"))
        &= nbsp;(delete '("\\.odt\\'" . default) org-file-apps)
         (add-to-list 'org-file-apps '("\\.odt\\'" . "cy= gstart %s")))))

so I can org-open-file html/pdf/od= t files successfully.

But with (require 'ox-odt) += C-c C-e o O , my odt files open in emacs instead of LibreOffice.

I am aware of (org-open-file (org-odt-export-to-odt nil s v= ) 'system) line in ox-odt.el: 
- If I run (org-open-file "fi= le.odt") I get the desired behaviour; 
- If I run (org-open-= file "file.odt" 'system) I get file.odt open in emacs as a zip file.
<= div>
So:

- How can redefine or supre= ss 'system in (org-open-file (org-odt-export-to-odt nil s v) 'system) line = in ox-odt.el?

- May I propose to developers to inc= lude (defconst org-file-apps-defaults-cygwin ... or similar?

=
- Could you help me in any other way?

Thank you so much.

= Miguel Ruiz,
Sevilla (Spain).
--1200650283-31886577-1385801099=:31770--