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


Message #14 received at 77898 <at> debbugs.gnu.org (full text, mbox):

From: Jens Schmidt <jschmidt4gnu <at> vodafonemail.de>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 77898 <at> debbugs.gnu.org
Subject: Re: bug#77898: 31.0.50; arc-mode: Split PKZIP archive signature not
 recognized
Date: Sat, 19 Apr 2025 14:31:27 +0200
On 2025-04-18  14:51, Eli Zaretskii wrote:

> Please add comments describing the possible signatures, with pointers
> to specific sections of APPNOTE.txt.

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)

But the Emacs indentation machinery clearly disagrees on that and
I'm not sure to what extent Emacs's indentation is normative in its
own sources.

Thanks.





This bug report was last modified 23 days ago.

Previous Next


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