]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix CBZ file detection in doc-view-mode
authorMorgan Smith <Morgan.J.Smith@outlook.com>
Sun, 12 Nov 2023 17:31:39 +0000 (12:31 -0500)
committerEli Zaretskii <eliz@gnu.org>
Wed, 15 Nov 2023 17:08:06 +0000 (19:08 +0200)
* lisp/doc-view.el (doc-view-set-doc-type): Fix CBZ file
detection.  (Bug#67133)

This fix is almost identical to the previous fix for ODF file
detection in bug#54947 which resulted in commit
b3ff4905388834994ff26d9d033d6bc62b094c1c

lisp/doc-view.el

index 427da557d23125ffc2791c8bb0e651d94a03fdb8..5b807d26435afda9e0c2c7fc99c05fe7c2ef6e0d 100644 (file)
@@ -2085,7 +2085,7 @@ GOTO-PAGE-FN other than `doc-view-goto-page'."
             ;; 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 odf))))))
+            ((looking-at "PK") '(epub odf cbz))))))
     (setq-local
      doc-view-doc-type
      (car (or (nreverse (seq-intersection name-types content-types #'eq))