From: Morgan Smith Date: Sun, 12 Nov 2023 17:31:39 +0000 (-0500) Subject: Fix CBZ file detection in doc-view-mode X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4e406bb4208;p=emacs.git Fix CBZ file detection in doc-view-mode * 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 --- diff --git a/lisp/doc-view.el b/lisp/doc-view.el index 427da557d23..5b807d26435 100644 --- a/lisp/doc-view.el +++ b/lisp/doc-view.el @@ -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))