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