]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix ODF file detection in doc-view-mode
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 16 Apr 2022 09:21:25 +0000 (11:21 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 16 Apr 2022 09:21:33 +0000 (11:21 +0200)
* lisp/doc-view.el (doc-view-set-doc-type): Fix ODF file detection
(bug#54947).

lisp/doc-view.el

index 5b07d75f6d86d9f6c38223bf9fe6e255cffe773c..10adc9fcc9b46d101d1b68a2ad3b559ccf2df3b2 100644 (file)
@@ -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))