From b3ff4905388834994ff26d9d033d6bc62b094c1c Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 16 Apr 2022 11:21:25 +0200 Subject: [PATCH] Fix ODF file detection in doc-view-mode * lisp/doc-view.el (doc-view-set-doc-type): Fix ODF file detection (bug#54947). --- lisp/doc-view.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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)) -- 2.39.5