changeset 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
files lisp/ChangeLog lisp/doc-view.el
diffstat 2 files changed, 11 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Thu Dec 30 14:45:09 2010 +0100
+++ b/lisp/ChangeLog	Thu Dec 30 14:53:22 2010 +0100
@@ -1,3 +1,8 @@
+2010-12-30  Tassilo Horn  <tassilo@member.fsf.org>
+
+	* doc-view.el (doc-view-doc->txt): Handle OpenDocument (or MS
+	Office) files also for searching.
+
 2010-12-30  Tassilo Horn  <tassilo@member.fsf.org>
 
 	* doc-view.el: Implement viewing of OpenDocument (and Microsoft
--- 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)