diff lisp/doc-view.el @ 112035:33f84f010bcb

* doc-view.el (doc-view-doc->txt): Handle OpenDocument (or MS Office) files also for searching.
author Tassilo Horn <tassilo@member.fsf.org>
date Thu, 30 Dec 2010 14:53:22 +0100
parents 6957ace4e43f
children f559229a64b8
line wrap: on
line diff
--- a/lisp/doc-view.el	Thu Dec 30 14:45:09 2010 +0100
+++ b/lisp/doc-view.el	Thu Dec 30 14:53:22 2010 +0100
@@ -813,6 +813,12 @@
      (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)