From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Tassilo Horn <tassilo@member.fsf.org>
Cc: Drew Adams <drew.adams@oracle.com>, emacs-devel@gnu.org
Subject: Re: DocView now supports OpenDocument & MS Office formats
Date: Thu, 30 Dec 2010 11:04:25 -0500 [thread overview]
Message-ID: <jwvwrmrgsfe.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87ei8zxnvw.fsf@member.fsf.org> (Tassilo Horn's message of "Thu, 30 Dec 2010 16:48:35 +0100")
> So something along the lines of:
> - ("\\.\\(?:PDF\\|DVI\\|pdf\\|dvi\\)\\'" . doc-view-mode)
> + ,(if (executable-find "unoconv")
> +
> ("\\.\\(?:PDF\\|DVI\\|OD[FGPST]\\|DOCX?\\|XLSX?\\|pdf\\|dvi\\|od[fgpst]\\|docx?\\|xlsx?\\)\\'"
> . doc-view-mode)
> + '("\\.\\(?:PDF\\|DVI\\|pdf\\|dvi\\)\\'" . doc-view-mode))
Could be an approach, except that files.el is preloaded, so that would
be evaluated at dump time rather than run time. Another is to link them
to doc-view-mode-maybe which would first check whether doc-view-mode can
really be used and fallback to the next best choice otherwise (could
even remove itself from auto-mode-alist at that point, tho it's not
clear that it would be useful).
Stefan
next prev parent reply other threads:[~2010-12-30 16:04 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-30 14:07 DocView now supports OpenDocument & MS Office formats Tassilo Horn
2010-12-30 14:30 ` Drew Adams
2010-12-30 14:50 ` Tassilo Horn
2010-12-30 15:40 ` Stefan Monnier
2010-12-30 15:48 ` Tassilo Horn
2010-12-30 16:04 ` Stefan Monnier [this message]
2010-12-30 18:10 ` Tassilo Horn
2011-05-06 15:30 ` Jambunathan K
2011-05-06 16:09 ` Tassilo Horn
2010-12-30 15:22 ` Tassilo Horn
2010-12-30 16:02 ` Stefan Monnier
2010-12-30 17:20 ` Tassilo Horn
-- strict thread matches above, loose matches on Subject: below --
2010-12-30 22:32 MON KEY
2010-12-30 22:59 ` Jason Rumney
2010-12-31 2:12 ` MON KEY
2010-12-31 8:35 ` Tassilo Horn
2010-12-31 9:25 ` Eli Zaretskii
2010-12-31 11:33 ` Tassilo Horn
2011-01-02 0:33 ` Richard Stallman
2011-01-02 7:29 ` MON KEY
2011-01-02 22:11 ` Richard Stallman
2011-01-03 4:14 ` Stephen J. Turnbull
2011-01-04 4:08 ` Richard Stallman
2011-01-04 4:35 ` Drew Adams
2011-01-04 5:33 ` Stephen J. Turnbull
2011-01-03 8:25 ` MON KEY
2011-01-04 4:08 ` Richard Stallman
2011-01-03 8:42 ` Tassilo Horn
2011-01-04 4:08 ` Richard Stallman
2011-01-04 7:38 ` Tassilo Horn
2011-01-04 8:18 ` Eli Zaretskii
2011-01-04 9:00 ` Tassilo Horn
2011-01-04 11:58 ` Eli Zaretskii
2011-01-05 19:42 ` Eduard Wiebe
2011-01-06 18:42 ` Richard Stallman
2011-01-07 11:18 ` Eli Zaretskii
2011-01-08 21:54 ` Eduard Wiebe
2011-01-09 4:02 ` Eli Zaretskii
2011-01-09 20:00 ` Richard Stallman
2011-01-09 20:13 ` Eduard Wiebe
2011-01-04 20:36 ` Richard Stallman
2011-01-04 21:07 ` Jambunathan K
2011-01-05 15:04 ` Tom Tromey
2011-01-04 21:17 ` Tassilo Horn
2011-01-05 2:02 ` Stephen J. Turnbull
2011-01-05 7:38 ` Tassilo Horn
2011-01-05 12:11 ` Stephen J. Turnbull
2011-01-20 7:32 ` Kevin Rodgers
2011-05-06 12:53 ` Jambunathan K
2011-01-05 23:37 ` Richard Stallman
2011-01-06 7:19 ` Tassilo Horn
2011-01-04 21:52 ` Lennart Borgman
2011-01-05 5:23 ` Miles Bader
2011-01-05 7:40 ` Tassilo Horn
2011-05-06 14:01 ` Jambunathan K
2011-01-03 13:04 ` CHENG Gao
2011-01-03 14:14 ` Tassilo Horn
2011-01-04 4:07 ` Richard Stallman
2011-01-02 22:11 ` Richard Stallman
2010-12-31 8:08 ` Tassilo Horn
2010-12-31 16:43 ` Stefan Monnier
2011-01-01 0:06 ` MON KEY
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvwrmrgsfe.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=tassilo@member.fsf.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.