From: Jambunathan K <kjambunathan@gmail.com>
To: Miguel Ruiz <rbenit68@yahoo.es>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
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 [thread overview]
Message-ID: <87pppi19fo.fsf@gmail.com> (raw)
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)")
Miguel Ruiz <rbenit68@yahoo.es> 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.
next prev parent reply other threads:[~2013-11-30 10:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-30 8:44 Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip Miguel Ruiz
2013-11-30 10:16 ` Jambunathan K [this message]
2013-11-30 10:43 ` Miguel Ruiz
2013-11-30 16:02 ` Jambunathan K
2013-11-30 16:03 ` Jambunathan K
2013-12-01 9:44 ` Miguel Ruiz
2013-12-02 6:54 ` Jambunathan K
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pppi19fo.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=rbenit68@yahoo.es \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).