From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#67926: 29.1; fail to extract ZIP subfile named with [...] Date: Thu, 28 Dec 2023 08:31:13 +0200 Message-ID: <838r5e96tq.fsf@gnu.org> References: <83a5q1dy1h.fsf@gnu.org> <831qb8anak.fsf@gnu.org> <83jzoz8ubq.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26040"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 67926@debbugs.gnu.org To: awrhygty@outlook.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Dec 28 07:32:18 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1rIjwI-0006ae-Iw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 28 Dec 2023 07:32:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rIjw5-00077i-K9; Thu, 28 Dec 2023 01:32:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rIjw3-000765-KB for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2023 01:32:03 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rIjw3-0007JF-Bq for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2023 01:32:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rIjw2-0003DE-Da for bug-gnu-emacs@gnu.org; Thu, 28 Dec 2023 01:32:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 28 Dec 2023 06:32:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 67926 X-GNU-PR-Package: emacs Original-Received: via spool by 67926-submit@debbugs.gnu.org id=B67926.170374509511998 (code B ref 67926); Thu, 28 Dec 2023 06:32:02 +0000 Original-Received: (at 67926) by debbugs.gnu.org; 28 Dec 2023 06:31:35 +0000 Original-Received: from localhost ([127.0.0.1]:38282 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIjva-00037R-Gv for submit@debbugs.gnu.org; Thu, 28 Dec 2023 01:31:34 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rIjvY-00033C-S2 for 67926@debbugs.gnu.org; Thu, 28 Dec 2023 01:31:33 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rIjvT-00078O-RN; Thu, 28 Dec 2023 01:31:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=dk6NVjKKes7NGLThfgUdRsYISQsgG/s+IixngPp9RNU=; b=ao5ovRD51Mi9 RHGRL7vLPTyYOy/uge3yuviB7JxhiGDnpP0aRgQe9vSScfkYAhQ7IChrzv4cxcPN+/wSN/36Qv0Lo CXqWzUyw/FtvVQKY18FOwc+Mad46aS9B8BZV3Uav4tYdgpZ9n2Ts+t/zaVoTIl00LMocQSYmCgT7V FqXAT+Z902Q1U2mfeOYCetpPBmEf+hiVj14LxXg+XZrmqiXRZgRzQ2KOpQ6yhJUAfEZSIJWbIvxU4 3Gy3MTWVegPwLNp3THKNMksEBYB2Pq2Xu+bc0txaexumShv8MU3wNjY9SEeMsIfC88yGwzk5vla5n PKinAVyPQPrsnveYK4LksQ==; In-Reply-To: (awrhygty@outlook.com) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:276953 Archived-At: > From: awrhygty@outlook.com > Cc: 67926@debbugs.gnu.org > Date: Thu, 28 Dec 2023 09:38:57 +0900 > > Eli Zaretskii writes: > > >> If unzip.exe(or an alternative external program) is necessary, > >> I want emacs not to load contents of archive files into archive-mode > >> buffer. It is waste of time and memory. > > > > unzip is necessary to extract files, but not to display the archive's > > contents. > > If users are expected to have unzip.exe, emacs can list subfiles without > examining archive contents as a binary file. > Users with unzip.exe don't care about whether subfiles are listed with > unzip.exe or not. I see your point. However, those decisions were made many years ago, and have withstood the test of time since then. So I see no reason to make drastic changes in how we support zip archives, just because we can, or just because other arrangements are possible. > If users are not expected to have unzip.exe, they feel convenient if > subfiles are extracted without unzip.exe. > In this case, it is better archive-zip-extract's value as variable can > be a lisp function to be called in the archive-zip-extract function. We could consider extracting using our own code if someone writes the code to support all the 17 methods that unzip.exe supports. Otherwise, we would introduce a regression, and someone somewhere will rightfully complain. Btw, your suggested changes required gzip and bunzip2 as external programs to support the 2 most popular compression methods. Why should we assume these are available more widely than unzip, especially on Windows?