From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Newsgroups: gmane.emacs.bugs Subject: bug#45036: Add archive-copy, just like dired-do-copy Date: Fri, 04 Dec 2020 08:32:17 +0800 Message-ID: <87im9i5s32.5.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8138"; mail-complaints-to="usenet@ciao.gmane.io" To: 45036@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Dec 04 02:26:15 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 1kkzrT-000232-6g for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Dec 2020 02:26:15 +0100 Original-Received: from localhost ([::1]:38974 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kkzrS-0005ll-8H for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 03 Dec 2020 20:26:14 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49136) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkzrI-0005i7-Qt for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2020 20:26:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58963) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kkzrG-0002No-LQ for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2020 20:26:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kkzrG-0004YE-IY for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2020 20:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: =?UTF-8?Q?=E7=A9=8D=E4=B8=B9=E5=B0=BC?= Dan Jacobson Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Dec 2020 01:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 45036 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.160704511617425 (code B ref -1); Fri, 04 Dec 2020 01:26:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 4 Dec 2020 01:25:16 +0000 Original-Received: from localhost ([127.0.0.1]:42273 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkzqW-0004Wz-5E for submit@debbugs.gnu.org; Thu, 03 Dec 2020 20:25:16 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:33024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kkzqV-0004Ws-Fu for submit@debbugs.gnu.org; Thu, 03 Dec 2020 20:25:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48984) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkzqV-0005Zt-5a for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2020 20:25:15 -0500 Original-Received: from antelope.elm.relay.mailchannels.net ([23.83.212.4]:13327) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kkzqT-0001yZ-5P for bug-gnu-emacs@gnu.org; Thu, 03 Dec 2020 20:25:14 -0500 X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 97C931015BB for ; Fri, 4 Dec 2020 01:25:09 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a38.g.dreamhost.com (100-100-138-63.trex.outbound.svc.cluster.local [100.100.138.63]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 9B5FA1013D6 for ; Fri, 4 Dec 2020 01:25:08 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a38.g.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.11); Fri, 04 Dec 2020 01:25:09 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Glossy-Imminent: 3b7518d1113ba784_1607045108868_3719420384 X-MC-Loop-Signature: 1607045108868:4000048154 X-MC-Ingress-Time: 1607045108868 Original-Received: from pdx1-sub0-mail-a38.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a38.g.dreamhost.com (Postfix) with ESMTP id 3334E7E677 for ; Thu, 3 Dec 2020 17:25:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=jidanni.org; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=jidanni.org; bh=M4bQe96TTS7AM8UmZ6 Fd8ucXggQ=; b=cW34pk70Iq3P7Tw2YcLNoKIQINekJAFEJsEpe8XIGUnYWMUROC uWcyXCqbZawt8I9eFUTKo6KhhX6q8K9t7NXgu/YyiIz0y+AmPUx7pjq2/cWsAcPw ppqmZm2CJ+Zo2atcc8axxPi8dMCAXCp6qJx9XWcLEuabTueHZpmc5WXfc= Original-Received: from jidanni.org (114-46-61-217.dynamic-ip.hinet.net [114.46.61.217]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: jidanni@jidanni.org) by pdx1-sub0-mail-a38.g.dreamhost.com (Postfix) with ESMTPSA id 970CC85A8B for ; Thu, 3 Dec 2020 17:25:07 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a38 Received-SPF: pass client-ip=23.83.212.4; envelope-from=jidanni@jidanni.org; helo=antelope.elm.relay.mailchannels.net X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:194935 Archived-At: "Zip-Archive mode defined in =E2=80=98arc-mode.el=E2=80=99: Major mode for viewing an archive file in a dired-like way." That's great, but how about letting "C" copy a file, like in dired. I mean what's the big deal? We just want to copy it to /tmp, ~, etc. Sure, raise some alarm if we want to copy it to some place _within the archive_. But hey, you let us view a file with v, so why not copy with C? Wait, there's 5 matches for "extract" in buffer: *Help* 22:e .. f archive-extract 25:RET archive-extract 35:E archive-extract-other-window 45:o archive-extract-other-window 56: archive-extract Must be important. Let's have a look. "In archive mode, extract this entry of the archive into its own buffer." I don't want to get tangled up (editing?) in the archive. I don't want to even look at the file's contents. I just want to copy it somewhere far far away (but still on the local machine.) So please add archive-copy or archive-copy-file, that, just like dired-do-copy, preserves the date. There I am, looking at M Filemode Length Date Time File - ---------- -------- ----------- -------- ----------------- -rw-rw-rw- 30933 3-Dec-2020 12:04:16 doc.kml -rw-rw-rw- 481 3-Dec-2020 12:04:16 images/icon-1.png -rw-rw-rw- 478 3-Dec-2020 12:04:16 images/icon-2.png -rw-rw-rw- 1026 3-Dec-2020 12:04:16 images/icon-3.png - ---------- -------- ----------- -------- ----------------- 32918 4 files with the cursor on doc.kml . OK, "C" should allow me to copy doc.kml to e.g., /tmp/doc.kml . emacs-version "27.1"