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-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miguel Ruiz Subject: Re: Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip Date: Sat, 30 Nov 2013 10:43:45 +0000 (GMT) Message-ID: <1385808225.47874.YahooMailNeo@web171903.mail.ir2.yahoo.com> References: <1385801099.31770.YahooMailNeo@web171905.mail.ir2.yahoo.com> <87pppi19fo.fsf@gmail.com> Reply-To: Miguel Ruiz Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="1329819898-827200874-1385808225=:47874" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vmi4I-000220-Ug for emacs-orgmode@gnu.org; Sat, 30 Nov 2013 05:46:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vmi4C-0007ve-2m for emacs-orgmode@gnu.org; Sat, 30 Nov 2013 05:46:34 -0500 Received: from nm34.bullet.mail.ne1.yahoo.com ([98.138.229.27]:23127) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Vmi4B-0007va-OA for emacs-orgmode@gnu.org; Sat, 30 Nov 2013 05:46:28 -0500 In-Reply-To: <87pppi19fo.fsf@gmail.com> 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: Jambunathan K Cc: "emacs-orgmode@gnu.org" --1329819898-827200874-1385808225=:47874 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Thank you, Jambunathan.=0A=0A1/ I'm running Emacs 24.3.1 (i686-pc-cygwin) o= f 2013-08-14 on moufang; it's Windows Emacs built into cygwin, so you don't= have to have X11 installed in cygwin for graphical Emacs.=0A=0A2/ I forgot= to say I'm a running mintty 1.1.3 so "open" is not available, I can use cy= gstart instead.=0A=0A3/ I will try the code you provide and I'll commit the= list the progress I get.=0A=0A4/ So far, cygwin+emacs+orgmode+python+perl+= latex it's very nice, specially by the fact that you can propagate an =A0ul= tra-customized working-environment as easy as just copy, no doubt, a very b= ig folder.=0A=0AMiguel.=0A=0A=0A=0AEl S=E1bado 30 de noviembre de 2013 11:1= 8, Jambunathan K escribi=F3:=0A =0A=0AMiguel Ruiz = writes:=0A=0ARemove all your configurations and try thi= s.=A0 This will use windows=0A"open".=0A=0A(require 'org)=A0 ;; Make sure o= rg is loaded=0A=0A(defun org-default-apps ()=0A=A0 "Return the default appl= ications for this operating system."=0A=A0 (cond=0A=A0 ((eq system-type 'd= arwin)=0A=A0 =A0 org-file-apps-defaults-macosx)=0A=A0 ((memq system-type '= (cygwin windows-nt)) ;;=A0 <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A=A0 =A0 = org-file-apps-defaults-windowsnt)=0A=A0 (t org-file-apps-defaults-gnu)))= =0A=0A> "cygstart %s"=0A=0AAny reason why this one is preferable windows's = default "open".=A0 Is=0Acygstart a recent addition or is it available even = on older=0Adistributions.=0A=0A> - How can redefine or supress 'system in (= org-open-file=0A> (org-odt-export-to-odt nil s v) 'system) line in ox-odt.e= l?=0A=0AODT files are zip files (can be opened in archive-mode) or they can= be=0Aopened in doc-view.=0A=0AUse of 'system has generally not proved to b= e problematic in practice.=0AI think it is possible to accomplish what you = want without touch or=0Amodifying that particular line.=0A=0A=0A> - May I p= ropose to developers to include (defconst=0A> org-file-apps-defaults-cygwin= ... or similar?=0A=0AIt would be a good idea.=0A=0ABut, does the Emacs com= e from cygwin distribution or is it NT Emacs=0A(ftp://ftp.gnu.org/gnu/emacs= /windows/).=0A=0A----------------------------------------------------------= ------=0A=0ASorry, I am unable to provide concrete feedback.=0A=0AAs someti= me user of Cygwin + Windows, I found that Cygwin is a pain and=0Astarted us= ing native Windows Emacs and Gnu Win32 libraries.=0A=0AI have now moved to = Debian now. --1329819898-827200874-1385808225=:47874 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Thank you, Jambunathan.

1/ I'm running Emacs 24.3.1 (i686-pc-cy= gwin) of 2013-08-14 on moufang; it's Windows Emacs built into cygwin, so yo= u don't have to have X11 installed in cygwin for graphical Emacs.

2/= I forgot to say I'm a running mintty 1.1.3 so "open" is not available, I c= an use cygstart instead.

3/ I will try the code you provide and I= 'll commit the list the progress I get.
<= span>
4/ So far, cygwin+emacs= +orgmode+python+perl+latex it's very nice, specially by the fact that you c= an propagate an  ultra-customized working-environment as easy as just = copy, no doubt, a very big folder.
=
Miguel.


<= font size=3D"2" face=3D"Arial"> El S=E1bado 30 de noviembre de 2013 11:18, = Jambunathan K <kjambunathan@gmail.com> escribi=F3:
=

Miguel Ruiz <rbenit68@yahoo.es> writes:

Remove all your configurations and try this.  This will use windows=
"open".

(require 'o= rg)  ;; Make sure org is loaded

(= defun org-default-apps ()
  "Return the default appl= ications for this operating system."
  (cond
  ((eq system-type 'darwin)
   = ; org-file-apps-defaults-macosx)
  ((memq system-ty= pe '(cygwin windows-nt)) ;;  <=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
    o= rg-file-apps-defaults-windowsnt)
  (t org-file-apps= -defaults-gnu)))

> "cygstart %s"
Any reason why this one is preferable wi= ndows's default "open".  Is
cygstart a recent additi= on or is it available even on older
distributions.

> - How can redefine or supress 'system i= n (org-open-file
> (org-odt-export-to-odt nil s v) 'sy= stem) line in ox-odt.el?

ODT files are= zip files (can be opened in archive-mode) or they can be
opened in doc-view.

Use of 'system ha= s generally not proved to be problematic in practice.
I t= hink it is possible to accomplish what you want without touch or
modifying that particular line.


> - May I propose to developers to include (defconst
> org-file-apps-defaults-cygwin ... or similar?


It would be a good idea.

But, does the Emacs come from cygwin distribution or is it NT Em= acs
(ftp://ftp.gnu.org/gnu/emacs/windows/).
----------------------------------------= ------------------------

Sorry, I am u= nable to provide concrete feedback.

As= sometime user of Cygwin + Windows, I found that Cygwin is a pain and
started using native Windows Emacs and Gnu Win32 libraries.
I have now moved to Debian now.



--1329819898-827200874-1385808225=:47874-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip Date: Sat, 30 Nov 2013 15:46:27 +0530 Message-ID: <87pppi19fo.fsf@gmail.com> References: <1385801099.31770.YahooMailNeo@web171905.mail.ir2.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60262) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vmhcr-0002RJ-QO for emacs-orgmode@gnu.org; Sat, 30 Nov 2013 05:18:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vmhck-0007uO-U7 for emacs-orgmode@gnu.org; Sat, 30 Nov 2013 05:18:13 -0500 Received: from mail-pd0-x235.google.com ([2607:f8b0:400e:c02::235]:46790) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vmhck-0007uJ-NB for emacs-orgmode@gnu.org; Sat, 30 Nov 2013 05:18:06 -0500 Received: by mail-pd0-f181.google.com with SMTP id p10so14974228pdj.40 for ; Sat, 30 Nov 2013 02:18:05 -0800 (PST) In-Reply-To: <1385801099.31770.YahooMailNeo@web171905.mail.ir2.yahoo.com> (Miguel Ruiz's message of "Sat, 30 Nov 2013 08:44:59 +0000 (GMT)") 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: Miguel Ruiz Cc: "emacs-orgmode@gnu.org" Miguel Ruiz writes: Remove all your configurations and try this. This will use windows "open". (require 'org) ;; Make sure org is loaded (defun org-default-apps () "Return the default applications for this operating system." (cond ((eq system-type 'darwin) org-file-apps-defaults-macosx) ((memq system-type '(cygwin windows-nt)) ;; <============ org-file-apps-defaults-windowsnt) (t org-file-apps-defaults-gnu))) > "cygstart %s" Any reason why this one is preferable windows's default "open". Is cygstart a recent addition or is it available even on older distributions. > - How can redefine or supress 'system in (org-open-file > (org-odt-export-to-odt nil s v) 'system) line in ox-odt.el? ODT files are zip files (can be opened in archive-mode) or they can be opened in doc-view. Use of 'system has generally not proved to be problematic in practice. I think it is possible to accomplish what you want without touch or modifying that particular line. > - May I propose to developers to include (defconst > org-file-apps-defaults-cygwin ... or similar? It would be a good idea. But, does the Emacs come from cygwin distribution or is it NT Emacs (ftp://ftp.gnu.org/gnu/emacs/windows/). ---------------------------------------------------------------- Sorry, I am unable to provide concrete feedback. As sometime user of Cygwin + Windows, I found that Cygwin is a pain and started using native Windows Emacs and Gnu Win32 libraries. I have now moved to Debian now. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip Date: Sat, 30 Nov 2013 21:33:43 +0530 Message-ID: <87siudx4f4.fsf@gmail.com> References: <1385801099.31770.YahooMailNeo@web171905.mail.ir2.yahoo.com> <87pppi19fo.fsf@gmail.com> <1385808225.47874.YahooMailNeo@web171903.mail.ir2.yahoo.com> <87zjolx4hn.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48843) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vmn2x-00081e-1h for emacs-orgmode@gnu.org; Sat, 30 Nov 2013 11:05:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vmn2o-0005fz-DQ for emacs-orgmode@gnu.org; Sat, 30 Nov 2013 11:05:30 -0500 Received: from mail-pd0-x22d.google.com ([2607:f8b0:400e:c02::22d]:35000) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vmn2o-0005fh-5y for emacs-orgmode@gnu.org; Sat, 30 Nov 2013 11:05:22 -0500 Received: by mail-pd0-f173.google.com with SMTP id p10so15362944pdj.4 for ; Sat, 30 Nov 2013 08:05:21 -0800 (PST) In-Reply-To: <87zjolx4hn.fsf@gmail.com> (Jambunathan K.'s message of "Sat, 30 Nov 2013 21:32:12 +0530") 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: Miguel Ruiz Cc: "emacs-orgmode@gnu.org" Jambunathan K writes: > (eval-after-load 'org > '(when (eq system-type 'gnu/linux) ^^^^^^^^^ ^^^^^^^^^ 'cygwin > (setcdr (assq 'system org-file-apps-defaults-gnu ) "cygstart %s") > (setcdr (assq t org-file-apps-defaults-gnu ) "cygstart %s"))) From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip Date: Sat, 30 Nov 2013 21:32:12 +0530 Message-ID: <87zjolx4hn.fsf@gmail.com> References: <1385801099.31770.YahooMailNeo@web171905.mail.ir2.yahoo.com> <87pppi19fo.fsf@gmail.com> <1385808225.47874.YahooMailNeo@web171903.mail.ir2.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48662) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vmn1V-0007Ly-C6 for emacs-orgmode@gnu.org; Sat, 30 Nov 2013 11:04:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vmn1M-0005Fx-Vs for emacs-orgmode@gnu.org; Sat, 30 Nov 2013 11:04:01 -0500 Received: from mail-pd0-x234.google.com ([2607:f8b0:400e:c02::234]:57745) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vmn1M-0005Fr-JN for emacs-orgmode@gnu.org; Sat, 30 Nov 2013 11:03:52 -0500 Received: by mail-pd0-f180.google.com with SMTP id q10so15268367pdj.25 for ; Sat, 30 Nov 2013 08:03:51 -0800 (PST) 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: Miguel Ruiz Cc: "emacs-orgmode@gnu.org" Ignore my earlier suggestion. > (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-apps '("\\.pdf\\'" . "cygstart %s")) > (delete '("\\.odt\\'" . default) org-file-apps) > (add-to-list 'org-file-apps '("\\.odt\\'" . "cygstart %s"))))) You can also remove the above settings. ---------------------------------------------------------------- Use the following setting instead. `org-default-apps' uses the value of `org-file-apps-defaults-gnu' for cygwin as well. You just need to remove the mailcap entry in that variable and replace it with "cygstart" as below. (eval-after-load 'org '(when (eq system-type 'gnu/linux) (setcdr (assq 'system org-file-apps-defaults-gnu ) "cygstart %s") (setcdr (assq t org-file-apps-defaults-gnu ) "cygstart %s"))) ---------------------------------------------------------------- As you rightly suggest, `org-default-apps' doesn't handle `system-type' value of 'cygwin. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Miguel Ruiz Subject: Re: Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip Date: Sun, 1 Dec 2013 09:44:37 +0000 (GMT) Message-ID: <1385891077.93445.YahooMailNeo@web171904.mail.ir2.yahoo.com> References: <1385801099.31770.YahooMailNeo@web171905.mail.ir2.yahoo.com> <87pppi19fo.fsf@gmail.com> <1385808225.47874.YahooMailNeo@web171903.mail.ir2.yahoo.com> <87zjolx4hn.fsf@gmail.com> <87siudx4f4.fsf@gmail.com> Reply-To: Miguel Ruiz Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="-410758353-207077464-1385891077=:93445" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37345) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Vn3cq-0005uC-Oc for emacs-orgmode@gnu.org; Sun, 01 Dec 2013 04:47:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Vn3cj-0007Oh-50 for emacs-orgmode@gnu.org; Sun, 01 Dec 2013 04:47:40 -0500 Received: from nm42.bullet.mail.ne1.yahoo.com ([98.138.120.49]:47516) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Vn3ci-0007OP-Qz for emacs-orgmode@gnu.org; Sun, 01 Dec 2013 04:47:33 -0500 In-Reply-To: <87siudx4f4.fsf@gmail.com> 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: Jambunathan K Cc: "emacs-orgmode@gnu.org" ---410758353-207077464-1385891077=:93445 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Thank you, Jambunathan.=0A=0AI was exploring=0A=0A(defconst org-file-apps-d= efaults-cygwin=0A=A0 '((remote . emacs)=0A=A0=A0=A0 (t . "cygstart %s")=0A= =A0=A0=A0 (system . "cygstart %s")=0A=A0=A0=A0 ("ps.gz"=A0 . "gv %s") =0A= =A0=A0=A0 ("eps.gz" . "gv %s")=0A=A0=A0=A0 ("dvi"=A0=A0=A0 . "xdvi %s")=0A= =A0=A0=A0 ("fig"=A0=A0=A0 . "xfig %s")))=0A=0A(defun org-default-apps () "R= eturn the default applications for this operating system." (cond ((eq syste= m-type 'darwin) org-file-apps-defaults-macosx)=0A((eq system-type 'cygw= in) org-file-apps-defaults-cygwin) =0A=A0((eq system-type 'windows-nt) = org-file-apps-defaults-windowsnt)=0A (t org-file-apps-defaults-gnu)))And = it works for me so far. Your code is more compact but an ad-hoc solution as= well. It is worth to take into consideration. Thanks again.=0A=0AI suppose= you would like to know I have also tweaked your directions about odt-mathm= l for cygwin:=0A=0A(setq org-latex-to-mathml-convert-command =0A=A0 "java -= jar $(cygpath -pw %j) -unicode -force -df %o %I")=0A=0A(setq org-latex-to-m= athml-jar-file =0A"/home/user/tmp-odt/mathtoweb.jar")=0A=0Awith great succe= ss (Java 1.7 update 25, mathtoweb 4.0.0).=0A=0AMiguel.=0A=0A=0A=0A=0A=0A=0A= =0A =0A=0A=0AJambunathan K writes:=0A=0A>=A0 =A0 = (eval-after-load 'org=0A>=A0 =A0 =A0 '(when (eq system-type 'gnu/linux)=0A= =0A=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ^^^^^^^^= ^=0A=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0=0A =A0 =A0 =A0 =A0 ^^^^= ^^^^^=0A=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 'cy= gwin=0A>=A0 =A0 =A0 =A0 =A0 (setcdr (assq 'system org-file-apps-defaults-gn= u ) "cygstart %s")=0A>=A0 =A0 =A0 =A0 =A0 (setcdr (assq t org-file-apps-def= aults-gnu ) "cygstart %s"))) ---410758353-207077464-1385891077=:93445 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Thank y= ou, Jambunathan.

I was exploring

(defconst org-file-apps-defaults-cygwi= n
  '((remote . emacs)
  = ;  (t . "cygstart %s")
    (system . = "cygstart %s")
    ("ps.gz"  . "gv %s= ")
    ("eps.gz" . "gv %s")
    ("dvi"    . "xdvi %s")
   = ("fig"    . "xfig %s")))
(defun org-=
default-apps ()=0A  "Return the default applications for this operating sys=
tem."=0A  (cond=0A   ((eq system-type 'darwin)     org-file-apps-defaults-m=
acosx)
((eq system-type 'cygwin) org-file-apps-defaults-cygwin) <= br>  ((eq system-type 'windows-nt) org-file-apps-defaults-windowsnt)= =0A (t org-file-apps-defaults-gnu)))
And it works for me so far. You= r code is more compact but an ad-hoc solution as well. It is worth to take = into consideration. Thanks again.

I suppose you would like to know I= have also tweaked your directions about odt-mathml for cygwin:

(set= q org-latex-to-mathml-convert-command
  "java -jar $(cygpath -pw %= j) -unicode -force -df %o %I")
(setq org-latex-to-mathml-jar-file <=
br>  "/home/user/tmp-odt/mathtoweb.jar")

with great success (J= ava 1.7 update 25, mathtoweb 4.0.0).

Miguel.


<= span id=3D"yiv0959073941yui_3_13_0_ym1_6_1385889869591_38" style=3D"font-si= ze:13px;">



Jambunathan K <kjambunathan@gmail.com> writes:

>    (eval-after-load 'org
>      '(when (eq system-type 'gnu/linux)

                              &nbs= p; ^^^^^^^^^
            &n= bsp;          =0A         ^^^^= ^^^^^
              &n= bsp;                 'cygwin
>          (setcdr (assq 'system or= g-file-apps-defaults-gnu ) "cygstart %s")
>  &nbs= p;       (setcdr (assq t org-file-apps-defaults-gnu ) "cygst= art %s")))


---410758353-207077464-1385891077=:93445-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: Re: Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip Date: Mon, 02 Dec 2013 12:24:58 +0530 Message-ID: <87bo0zg2t9.fsf@gmail.com> References: <1385801099.31770.YahooMailNeo@web171905.mail.ir2.yahoo.com> <87pppi19fo.fsf@gmail.com> <1385808225.47874.YahooMailNeo@web171903.mail.ir2.yahoo.com> <87zjolx4hn.fsf@gmail.com> <87siudx4f4.fsf@gmail.com> <1385891077.93445.YahooMailNeo@web171904.mail.ir2.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:52280) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnNPZ-0004cW-E5 for emacs-orgmode@gnu.org; Mon, 02 Dec 2013 01:55:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VnNPT-00027Q-Ig for emacs-orgmode@gnu.org; Mon, 02 Dec 2013 01:55:17 -0500 Received: from plane.gmane.org ([80.91.229.3]:43546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VnNPT-00027M-C8 for emacs-orgmode@gnu.org; Mon, 02 Dec 2013 01:55:11 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VnNPS-0002FU-4e for emacs-orgmode@gnu.org; Mon, 02 Dec 2013 07:55:10 +0100 Received: from 115.242.255.106 ([115.242.255.106]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Dec 2013 07:55:10 +0100 Received: from kjambunathan by 115.242.255.106 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Dec 2013 07:55:10 +0100 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 Cc: "emacs-orgmode@gnu.org" Miguel Ruiz writes: > (defconst org-file-apps-defaults-cygwin > '((remote . emacs) > (t . "cygstart %s") > (system . "cygstart %s") > ("ps.gz" . "gv %s") > ("eps.gz" . "gv %s") > ("dvi" . "xdvi %s") > ("fig" . "xfig %s"))) > (defun org-default-apps () > "Return the default applications for this operating system." > (cond > ((eq system-type 'darwin) org-file-apps-defaults-macosx) > ((eq system-type 'cygwin) org-file-apps-defaults-cygwin) >  ((eq system-type 'windows-nt) org-file-apps-defaults-windowsnt) > (t org-file-apps-defaults-gnu))) The cygwin issue your report should have been picked up by now. It is a good idea to do a M-x report-emacs-bug so that this issue is recorded. > I suppose you would like to know I have also tweaked your directions > about odt-mathml for cygwin: > > (setq org-latex-to-mathml-convert-command > "java -jar $(cygpath -pw %j) -unicode -force -df %o %I") > (setq org-latex-to-mathml-jar-file > "/home/user/tmp-odt/mathtoweb.jar") Thanks. I see mathml has improved since I added support for it. You are the second ever user I heard from. (Search for plasticml in the mailing list to see the "other" mathml thread) > with great success (Java 1.7 update 25, mathtoweb 4.0.0). Good to hear that.