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