From b71b7803226e0214d235e6ab4d8fab1e873571ae Mon Sep 17 00:00:00 2001 From: Tassilo Horn Date: Thu, 30 Dec 2010 14:53:22 +0100 Subject: [PATCH] * doc-view.el (doc-view-doc->txt): Handle OpenDocument (or MS Office) files also for searching. --- lisp/ChangeLog | 5 +++++ lisp/doc-view.el | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e86f316ac22..8717bb441b7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2010-12-30 Tassilo Horn + + * doc-view.el (doc-view-doc->txt): Handle OpenDocument (or MS + Office) files also for searching. + 2010-12-30 Tassilo Horn * doc-view.el: Implement viewing of OpenDocument (and Microsoft diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 9d0f6a3af63..9f5826484e5 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -813,6 +813,12 @@ Start by converting PAGES, and then the rest." (doc-view-pdf->txt (expand-file-name "doc.pdf" (doc-view-current-cache-dir)) txt callback)) + (odf + ;; Doc is some ODF (or MS Office) doc. This means that a doc.pdf + ;; already exists in its cache subdirectory. + (doc-view-pdf->txt (expand-file-name "doc.pdf" + (doc-view-current-cache-dir)) + txt callback)) (t (error "DocView doesn't know what to do")))) (defun doc-view-ps->pdf (ps pdf callback) -- 2.39.5