GNU bug report logs - #61326
30.0.50; Editing fil in zip file without extension save creates new file

Previous Next

Package: emacs;

Reported by: Adam Sjøgren <asjo <at> koldfront.dk>

Date: Mon, 6 Feb 2023 17:01:02 UTC

Severity: normal

Found in version 30.0.50

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

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Adam Sjøgren <asjo <at> koldfront.dk>
Cc: 61326 <at> debbugs.gnu.org
Subject: Re: bug#61326: 30.0.50;
 Editing fil in zip file without extension save creates new file
Date: Mon, 06 Feb 2023 20:04:47 +0200
> Date: Mon, 06 Feb 2023 18:00:14 +0100
> From:  Adam Sjøgren via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> 
> If I open a zip archive in Emacs, I get a listing of files within the
> archive, and I can edit the files by pressing RET, and if I then save
> the file, Emacs updates the archive.
> 
> However, if the zip archive doesn't have ".zip" (or ".jar") at the end
> of the filename, Emacs instead of updating the archive opened, creates a
> new archive with ".zip" added.

AFAIR, Emacs uses the 'zip' program to create or update a zip archive,
and I suspect that the fact the archive has .zip appended is because
that's what the 'zip' program does.

Did you try looking at the command that Emacs invokes when you update
a member of the archive?




This bug report was last modified 2 years and 90 days ago.

Previous Next


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