From: Lars Ingebrigtsen Date: Sat, 16 Apr 2022 09:21:25 +0000 (+0200) Subject: Fix ODF file detection in doc-view-mode X-Git-Tag: emacs-29.0.90~1931^2~533 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b3ff4905388834994ff26d9d033d6bc62b094c1c;p=emacs.git Fix ODF file detection in doc-view-mode * lisp/doc-view.el (doc-view-set-doc-type): Fix ODF file detection (bug#54947). --- diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 5b07d75f6d8..10adc9fcc9b 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -1947,8 +1947,7 @@ If BACKWARD is non-nil, jump to the previous match." ;; zip-archives, so that this same association is used for ;; cbz files. This is fine, as cbz files should be handled ;; like epub anyway. - ((looking-at "PK") '(epub)) - )))) + ((looking-at "PK") '(epub odf)))))) (setq-local doc-view-doc-type (car (or (nreverse (seq-intersection name-types content-types #'eq))