From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.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#34503: dired-do-copy: full disclosure Date: Sun, 17 Feb 2019 01:49:51 +0800 Message-ID: <87imxjmxmo.fsf@jidanni.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="128320"; mail-complaints-to="usenet@blaine.gmane.org" To: 34503@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 16 20:33:11 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gv5i1-000XEt-RL for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Feb 2019 20:33:10 +0100 Original-Received: from localhost ([127.0.0.1]:60162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gv5i0-0004Zd-PE for geb-bug-gnu-emacs@m.gmane.org; Sat, 16 Feb 2019 14:33:08 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gv5hu-0004ZY-Sf for bug-gnu-emacs@gnu.org; Sat, 16 Feb 2019 14:33:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gv5hu-0006AL-1p for bug-gnu-emacs@gnu.org; Sat, 16 Feb 2019 14:33:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51251) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gv5ht-0006AH-U0 for bug-gnu-emacs@gnu.org; Sat, 16 Feb 2019 14:33:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gv5ht-0001ne-Q1 for bug-gnu-emacs@gnu.org; Sat, 16 Feb 2019 14:33:01 -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: Sat, 16 Feb 2019 19:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34503 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.15503455256852 (code B ref -1); Sat, 16 Feb 2019 19:33:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 Feb 2019 19:32:05 +0000 Original-Received: from localhost ([127.0.0.1]:50532 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gv5gz-0001mR-Al for submit@debbugs.gnu.org; Sat, 16 Feb 2019 14:32:05 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35926) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gv5gx-0001lY-1O for submit@debbugs.gnu.org; Sat, 16 Feb 2019 14:32:03 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:57410) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gv5gr-0005VM-Rt for submit@debbugs.gnu.org; Sat, 16 Feb 2019 14:31:57 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50306) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gv5gr-0004Nn-2c for bug-gnu-emacs@gnu.org; Sat, 16 Feb 2019 14:31:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gv5gp-0005Tu-OU for bug-gnu-emacs@gnu.org; Sat, 16 Feb 2019 14:31:57 -0500 Original-Received: from indri.birch.relay.mailchannels.net ([23.83.209.92]:18933) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gv5gp-0005S7-9A for bug-gnu-emacs@gnu.org; Sat, 16 Feb 2019 14:31:55 -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 AB5725E23D3 for ; Sat, 16 Feb 2019 19:31:52 +0000 (UTC) Original-Received: from pdx1-sub0-mail-a15.g.dreamhost.com (unknown [100.96.29.126]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 78CAB5E22C0 for ; Sat, 16 Feb 2019 19:31:52 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|jidanni@jidanni.org Original-Received: from pdx1-sub0-mail-a15.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.16.2); Sat, 16 Feb 2019 19:31:52 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|jidanni@jidanni.org X-MailChannels-Auth-Id: dreamhost X-Left-Little: 1ceca7a125dad25f_1550345512565_3335544744 X-MC-Loop-Signature: 1550345512565:1849296404 X-MC-Ingress-Time: 1550345512565 Original-Received: from pdx1-sub0-mail-a15.g.dreamhost.com (localhost [127.0.0.1]) by pdx1-sub0-mail-a15.g.dreamhost.com (Postfix) with ESMTP id 14E548003A for ; Sat, 16 Feb 2019 11:31:52 -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=4v44J8CmpP+mpInbYI bMKoLBigg=; b=V9FnASKMcQmHIBSxNNNvB00VwmBB49Oqr51jfb9JVZSpdlZTSQ 0z4SMs+RfgLGQ1yyqNLq7gqWPrBb6/gwZfYne8jUdmGji5/O+docet91oEXyLqRT 3ISCGWzBnq6Zoh6P4TQADTlzj40ah0XtzEEQf/vY/PF2MxEIl1P4jj5Ec= Original-Received: from jidanni.org (114-41-29-30.dynamic-ip.hinet.net [114.41.29.30]) (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-a15.g.dreamhost.com (Postfix) with ESMTPSA id 8D5BA80021 for ; Sat, 16 Feb 2019 11:31:51 -0800 (PST) X-DH-BACKEND: pdx1-sub0-mail-a15 X-VR-OUT-STATUS: OK X-VR-OUT-SCORE: 0 X-VR-OUT-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedtledruddtledguddvlecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucggtfgfnhhsuhgsshgtrhhisggvpdfftffgtefojffquffvnecuuegrihhlohhuthemuceftddtnecunecujfgurhephffvufffkfggtgfgsehtkeertddttdejnecuhfhrohhmpejnnjjnucffrghnucflrggtohgsshhonhcuoehjihgurghnnhhisehjihgurghnnhhirdhorhhgqeenucfkphepuddugedrgedurddvledrfedtnecurfgrrhgrmhepmhhouggvpehsmhhtphdphhgvlhhopehjihgurghnnhhirdhorhhgpdhinhgvthepuddugedrgedurddvledrfedtpdhrvghtuhhrnhdqphgrthhhpeeprehuthhfqdekreeureehiehmpfehnfhiheehsgevkeerpecuffgrnhculfgrtghosghsohhnuceojhhiuggrnhhnihesjhhiuggrnhhnihdrohhrgheqpdhmrghilhhfrhhomhepjhhiuggrnhhnihesjhhiuggrnhhnihdrohhrghdpnhhrtghpthhtohepsghughdqghhnuhdqvghmrggtshesghhnuhdrohhrghenucevlhhushhtvghrufhiiigvpedu X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 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.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:155459 Archived-At: C runs the command dired-do-copy (found in dired-mode-map), which is an interactive autoloaded compiled Lisp function in =E2=80=98dired-aux.el= =E2=80=99. OK but even though it asks "Recursive copy of directory?" etc. its final line is always "Copied 1 file". Please have it say "Copied 2387 files, 141 directories" else we always have to double check if it really ever copied more than one file you see. Computers are fast these days. Yes you can argue (hmmm, I think we argued about this before) that a directory is a file. But cp -v shows more that one... Anyway simply keep track of how many files and directories were copied and report it. But wait, then we lose the safety feature of: "I forgot how many marks I made. In fact I had marked two directories, so good thing it said copied 2 files." OK, say "Copied 2 trees, 47 directories, 234 files." Something like that. And only say "trees" when more than one directory is marked... But what if they had marked one directory and one file... Same for Rename (R).