GNU bug report logs - #77898
31.0.50; arc-mode: Split PKZIP archive signature not recognized

Previous Next

Package: emacs;

Reported by: Jens Schmidt <jschmidt4gnu <at> vodafonemail.de>

Date: Fri, 18 Apr 2025 12:33:03 UTC

Severity: normal

Found in version 31.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jens Schmidt <jschmidt4gnu <at> vodafonemail.de>
Cc: 77898 <at> debbugs.gnu.org
Subject: bug#77898: 31.0.50; arc-mode: Split PKZIP archive signature not recognized
Date: Sat, 19 Apr 2025 16:07:59 +0300
> Date: Sat, 19 Apr 2025 14:31:27 +0200
> Cc: 77898 <at> debbugs.gnu.org
> From: Jens Schmidt <jschmidt4gnu <at> vodafonemail.de>
> 
> As an aside, how would you add a comment to the first branch of a
> `cond' if you would like to keep the branches aligned to the *end*
> of the `cond' keyword?  I usually do these as follows:
> 
>     (cond ;; See APPNOTE.txt (version 6.3.10) from PKWARE for the zip
>           ;; file signatures:
>           ;; - PK\003\004 == 0x04034b50: local file header signature
>           ;;   (section 4.3.7)
>           ;; - PK\007\010 == 0x08074b50 (followed by local header):
>           ;;   spanned/split archive signature (section 8.5.3)
>           ;; - PK00 == 0x30304b50 (followed by local header): temporary
>           ;;   spanned/split archive signature (section 8.5.4)
>           ((looking-at "\\(?:PK\007\010\\|PK00\\)?[P]K\003\004") 'zip)

Something like below, perhaps?

    (cond (looking-at
           ;; Comment
           "PATTERN"

Or even

    ;;    See APPNOTE.txt
    (cond ((looking-at "\\(?:PK\007\010\\|PK00\\)?[P]K\003\004") 'zip)




This bug report was last modified 24 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.