emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 4e406bb4208: Fix CBZ file detection in doc-view-mode


From: Eli Zaretskii
Subject: emacs-29 4e406bb4208: Fix CBZ file detection in doc-view-mode
Date: Wed, 15 Nov 2023 12:09:25 -0500 (EST)

branch: emacs-29
commit 4e406bb4208175c50c26e513011f646b67191d2e
Author: Morgan Smith <Morgan.J.Smith@outlook.com>
Commit: Eli Zaretskii <eliz@gnu.org>

    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
---
 lisp/doc-view.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]