From: Juri Linkov Date: Fri, 28 Aug 2009 23:48:46 +0000 (+0000) Subject: (magic-fallback-mode-alist): Add ZIP magic number X-Git-Tag: emacs-pretest-23.1.90~1617 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e15f58f871d90d1bdbbeb907bc81d85f29ae0b13;p=emacs.git (magic-fallback-mode-alist): Add ZIP magic number associated with `archive-mode'. --- diff --git a/lisp/files.el b/lisp/files.el index 2c695c1d4bd..a23408a0beb 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -2402,6 +2402,7 @@ If FUNCTION is nil, then it is not called. (That is a way of saying (defvar magic-fallback-mode-alist `((image-type-auto-detected-p . image-mode) + ("\\(PK00\\)?[P]K\003\004" . archive-mode) ; zip ;; The < comes before the groups (but the first) to reduce backtracking. ;; TODO: UTF-16