emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Miguel Ruiz <rbenit68@yahoo.es>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
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)	[thread overview]
Message-ID: <1385801099.31770.YahooMailNeo@web171905.mail.ir2.yahoo.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1337 bytes --]

Hello,

I use cygwin only cli, so I depend on html, pdf and odt MSWindows viewer.

I could manage to add this 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-apps '("\\.pdf\\'" . "cygstart %s"))
         (delete '("\\.odt\\'" . default) org-file-apps)
         (add-to-list 'org-file-apps '("\\.odt\\'" . "cygstart %s")))))

so I can org-open-file html/pdf/odt 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 "file.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.

So:

- How can redefine or supress '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 include (defconst org-file-apps-defaults-cygwin ... or similar?

- Could you help me in any other way?

Thank you so much.

Miguel Ruiz,
Sevilla (Spain).

[-- Attachment #2: Type: text/html, Size: 2054 bytes --]

             reply	other threads:[~2013-11-30  8:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-30  8:44 Miguel Ruiz [this message]
2013-11-30 10:16 ` Cygwin (org-open-file (org-odt-export-to-odt nil s v) 'system) opens odt as zip Jambunathan K
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=1385801099.31770.YahooMailNeo@web171905.mail.ir2.yahoo.com \
    --to=rbenit68@yahoo.es \
    --cc=emacs-orgmode@gnu.org \
    /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).