From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#44753: 27.1; arc-mode does not extract marked files Date: Tue, 24 Nov 2020 07:06:59 +0100 Message-ID: <874klfcmpo.fsf@gnus.org> References: <87zh3c4soy.fsf@delllaptop.lockywolf.net> <831rgo1mex.fsf@gnu.org> <87sg94ied8.fsf@gnus.org> <83wnygz1py.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6965"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: lockywolf@gmail.com, 44753@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 24 07:08:09 2020 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 1khRUn-0001jD-Hb for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Nov 2020 07:08:09 +0100 Original-Received: from localhost ([::1]:40908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1khRUm-0007z0-Hw for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 24 Nov 2020 01:08:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54682) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1khRUg-0007yr-AM for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2020 01:08:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40671) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1khRUg-0002rI-38 for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2020 01:08:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1khRUf-0002ps-RX for bug-gnu-emacs@gnu.org; Tue, 24 Nov 2020 01:08:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Nov 2020 06:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44753 X-GNU-PR-Package: emacs Original-Received: via spool by 44753-submit@debbugs.gnu.org id=B44753.160619803910837 (code B ref 44753); Tue, 24 Nov 2020 06:08:01 +0000 Original-Received: (at 44753) by debbugs.gnu.org; 24 Nov 2020 06:07:19 +0000 Original-Received: from localhost ([127.0.0.1]:52217 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khRTz-0002oj-2N for submit@debbugs.gnu.org; Tue, 24 Nov 2020 01:07:19 -0500 Original-Received: from quimby.gnus.org ([95.216.78.240]:49348) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1khRTx-0002oR-Ax for 44753@debbugs.gnu.org; Tue, 24 Nov 2020 01:07:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=FT8nE9Wa8pO2GFfnVB1b9zUJaoQEejYTzUCz7uneEAA=; b=nn4GAIzSLfopPzVIryUNjvn6l5 pn4fTHqi9yuqUykuAX9OVZjl+IelhVoh78tIxAfvFi/LCWdA6kEFVhBx6PSzxxbNCNyOEEGcHCCST tGRJ/akyzBiQs/47lUGfOLdcZ0xlqVl32esuBS107gzy+Y6N/8AT+5OzTiUwFwHHjypc=; Original-Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=xo) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1khRTg-0000CD-Ug; Tue, 24 Nov 2020 07:07:11 +0100 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAD1BMVEWwcUThrmPKurLx 3uD///9ubg/NAAAAAWJLR0QEj2jZUQAAAAd0SU1FB+QLGAUYJ4KmUowAAAGWSURBVDjLZVSLscMw CMN9C9jOAqmYILD/bg9E/vWlvdRCQoBdkdYGviPW9Fh8maoqvcXrCdjgm0FlSOsi0mQsAVTEhPsB SO9/B2FMDWBfq/T4tRUAdUsREloCY1LL1TT2RkL4zlRSAoYCRhfgG4R18crhAHVayxKSYPQeKSD0 +iGwjYmhe6XlCQgjVUR8LwVE5WHiaEeKFdCXDbanSBU9Gcv0C1iYiUAblCkpbvVPARuC7/nYqIAw EnU0J8X8WhYmkabyh+6fgxJtH4sdDL3AGFT08hKygjkovcsrMaSreUkfBMtYeRiyfJSR4sW8iTHQ ngwiTArB1Od+2Qq701+MOG0Gr3N274eZ5thk+A+jXL0IYQXMIu/4dG/+A9Cp75Xfd1M+jsBDCroX XRXegJ3gmnN6MJwabmcTL6D69wKuKd6BOBiP8bLtNTTVB4AEVkl6umVuUC4BES9HOFhA5th4oXLc h5wVIPLRnMPlC+zVKjJjBmrnoajKLS46FJw1e1vXzuMvobUMrvHwpJOWV/NzmwVYVoT8AzyztIyi 6EgkAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIwLTExLTI0VDA1OjI0OjM5KzAwOjAw6avpNAAAACV0 RVh0ZGF0ZTptb2RpZnkAMjAyMC0xMS0yNFQwNToyNDozOSswMDowMJj2UYgAAAAASUVORK5CYII= X-Now-Playing: Laraaji's _Ambient 3: Day Of Radiance_: "Meditation #1" In-Reply-To: <83wnygz1py.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 20 Nov 2020 13:50:33 +0200") 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" Xref: news.gmane.io gmane.emacs.bugs:194015 Archived-At: Eli Zaretskii writes: > However, the implementation of archive-copy-file doesn't seem to be > easily scalable to what Vladimir requested. It is also sub-optimal > (to say the least) to extract files by going through a temporary > buffer, since every archive type has some way of extracting files > directly. That's true. arc-mode is a pretty ambitious package, allowing editing etc of files in the archives, where some of the backends parse the files directly in elisp, and some use external programs. Which is probably why it took so long for somebody to write a simple "copy" command. > If nothing else, this will cause serious problems with > encoding, especially when several files are extracted at once that > happen to be encoded differently. And the speed will also be much > slower than if we use the archiver program to do the extraction. If we're doing extraction to file directly, then I think arc-mode should be rewritten to just use external commands for everything, and not attempt to parse anything in Lisp. I don't think the speed thing is that vital -- we've lived with this forever (i.e., using non-native commands for looking at file members). As for coding systems -- do the native commands do any decoding? I'd expect unpacking a zip file to give me exactly the bytes that were in the files before packing them. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no