# HG changeset patch # User Chong Yidong # Date 1247424998 0 # Node ID 819d4646794efc3c30af86940ea523ef55d933ff # Parent a75fa842931b221ef0264b7e225af9a0a4c100de * arc-mode.el (archive-find-type): Allow for a PK00 string before the PK\003\004 header (Bug#3770). diff -r a75fa842931b -r 819d4646794e lisp/ChangeLog --- a/lisp/ChangeLog Sun Jul 12 16:20:50 2009 +0000 +++ b/lisp/ChangeLog Sun Jul 12 18:56:38 2009 +0000 @@ -1,3 +1,8 @@ +2009-07-12 Peter Jolly (tiny change) + + * arc-mode.el (archive-find-type): Allow for a PK00 string before + the PK\003\004 header (Bug#3770). + 2009-07-12 Guanpeng Xu * pcomplete.el (pcomplete-comint-setup): Check for diff -r a75fa842931b -r 819d4646794e lisp/arc-mode.el --- a/lisp/arc-mode.el Sun Jul 12 16:20:50 2009 +0000 +++ b/lisp/arc-mode.el Sun Jul 12 18:56:38 2009 +0000 @@ -716,7 +716,7 @@ ;; The funny [] here make it unlikely that the .elc file will be treated ;; as an archive by other software. (let (case-fold-search) - (cond ((looking-at "[P]K\003\004") 'zip) + (cond ((looking-at "\\(PK00\\)?[P]K\003\004") 'zip) ((looking-at "..-l[hz][0-9ds]-") 'lzh) ((looking-at "....................[\334]\247\304\375") 'zoo) ((and (looking-at "\C-z") ; signature too simple, IMHO