From: Shuguang Sun Date: Fri, 21 Jan 2022 10:25:27 +0000 (+0100) Subject: Use the correct converter for odf files in doc-view X-Git-Tag: emacs-29.0.90~2878^2~9 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3ffa13d0aa00f463e134c568c2d52fb03637a108;p=emacs.git Use the correct converter for odf files in doc-view * lisp/doc-view.el (doc-view-pdf/ps->png): Use the correct converter for odf files (bug#53354). --- diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 5b462b24f5a..5e160f5dff1 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -1189,7 +1189,7 @@ is named like ODF with the extension turned to pdf." "Convert PDF-PS to PNG asynchronously." (funcall (pcase doc-view-doc-type - ('pdf doc-view-pdf->png-converter-function) + ((or 'pdf 'odf) doc-view-pdf->png-converter-function) ('djvu #'doc-view-djvu->tiff-converter-ddjvu) (_ #'doc-view-ps->png-converter-ghostscript)) pdf-ps png nil