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.