diff options
| author | Tassilo Horn | 2010-12-30 14:53:22 +0100 |
|---|---|---|
| committer | Tassilo Horn | 2010-12-30 14:53:22 +0100 |
| commit | b71b7803226e0214d235e6ab4d8fab1e873571ae (patch) | |
| tree | db09f2d694cb2eadc26fc0600822b8b469be60e8 | |
| parent | 95e16d17b79704085634aaa5b87db1b86ec7ba5f (diff) | |
| download | emacs-b71b7803226e0214d235e6ab4d8fab1e873571ae.tar.gz emacs-b71b7803226e0214d235e6ab4d8fab1e873571ae.zip | |
* doc-view.el (doc-view-doc->txt): Handle OpenDocument (or MS Office) files also for searching.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/doc-view.el | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index e86f316ac22..8717bb441b7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2010-12-30 Tassilo Horn <tassilo@member.fsf.org> | 1 | 2010-12-30 Tassilo Horn <tassilo@member.fsf.org> |
| 2 | 2 | ||
| 3 | * doc-view.el (doc-view-doc->txt): Handle OpenDocument (or MS | ||
| 4 | Office) files also for searching. | ||
| 5 | |||
| 6 | 2010-12-30 Tassilo Horn <tassilo@member.fsf.org> | ||
| 7 | |||
| 3 | * doc-view.el: Implement viewing of OpenDocument (and Microsoft | 8 | * doc-view.el: Implement viewing of OpenDocument (and Microsoft |
| 4 | Office) files. Not yet enabled via auto-mode-list. | 9 | Office) files. Not yet enabled via auto-mode-list. |
| 5 | (doc-view-unoconv-program): New custom variable. | 10 | (doc-view-unoconv-program): New custom variable. |
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." | |||
| 813 | (doc-view-pdf->txt (expand-file-name "doc.pdf" | 813 | (doc-view-pdf->txt (expand-file-name "doc.pdf" |
| 814 | (doc-view-current-cache-dir)) | 814 | (doc-view-current-cache-dir)) |
| 815 | txt callback)) | 815 | txt callback)) |
| 816 | (odf | ||
| 817 | ;; Doc is some ODF (or MS Office) doc. This means that a doc.pdf | ||
| 818 | ;; already exists in its cache subdirectory. | ||
| 819 | (doc-view-pdf->txt (expand-file-name "doc.pdf" | ||
| 820 | (doc-view-current-cache-dir)) | ||
| 821 | txt callback)) | ||
| 816 | (t (error "DocView doesn't know what to do")))) | 822 | (t (error "DocView doesn't know what to do")))) |
| 817 | 823 | ||
| 818 | (defun doc-view-ps->pdf (ps pdf callback) | 824 | (defun doc-view-ps->pdf (ps pdf callback) |