From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#9864: 24.0.90; dired/copying+dwim-target : misplaced directory Date: Tue, 25 Oct 2011 08:47:27 -0400 Message-ID: References: <87sjmit7p2.fsf@luca.i-did-not-set--mail-host-address--so-tickle-me> <87pqhlwz0f.fsf@mail.jurta.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1319547449 15280 80.91.229.12 (25 Oct 2011 12:57:29 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 25 Oct 2011 12:57:29 +0000 (UTC) Cc: Andreas Politz , 9864@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 25 14:57:24 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RIgZF-0001Mu-86 for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Oct 2011 14:57:21 +0200 Original-Received: from localhost ([::1]:50601 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIgZ9-000289-O3 for geb-bug-gnu-emacs@m.gmane.org; Tue, 25 Oct 2011 08:57:15 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:60709) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIgYz-0000jM-3U for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2011 08:57:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RIgQc-0004mI-QN for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2011 08:48:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43433) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RIgQc-0004m0-Ov for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2011 08:48:26 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1RIgSA-0003J4-TK for bug-gnu-emacs@gnu.org; Tue, 25 Oct 2011 08:50:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Oct 2011 12:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 9864 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 9864-submit@debbugs.gnu.org id=B9864.131954695412647 (code B ref 9864); Tue, 25 Oct 2011 12:50:02 +0000 Original-Received: (at 9864) by debbugs.gnu.org; 25 Oct 2011 12:49:14 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIgRN-0003Hw-Lq for submit@debbugs.gnu.org; Tue, 25 Oct 2011 08:49:14 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1RIgRK-0003Hi-9K for 9864@debbugs.gnu.org; Tue, 25 Oct 2011 08:49:11 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Ak0JAOyupk5MCrTo/2dsb2JhbABDqAWBD4EGgW4BAQQBViMFCws0EhQYDSSIE7RtiEMEoT2ERQ X-IronPort-AV: E=Sophos;i="4.69,404,1315195200"; d="scan'208";a="144278381" Original-Received: from 76-10-180-232.dsl.teksavvy.com (HELO ceviche.home) ([76.10.180.232]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 25 Oct 2011 08:47:27 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id 307C966158; Tue, 25 Oct 2011 08:47:27 -0400 (EDT) In-Reply-To: <87pqhlwz0f.fsf@mail.jurta.org> (Juri Linkov's message of "Tue, 25 Oct 2011 07:36:04 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 25 Oct 2011 08:50:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:53117 Archived-At: > It's unclear what do you expect. The current behavior is wrong. I see 3 valid outcomes: /tmp/dest /tmp/dest/a /tmp/dest/a/foo or /tmp/dest /tmp/dest/a /tmp/dest/foo or an error message or a prompt about the overwrite. > If you want to get this: > /tmp/dest > /tmp/dest/a > /tmp/dest/a/foo > then you have to remove the final slash in the minibuffer > after calling `dired-do-copy'. So instead of: > Copy a to: /home/work/emacs/test/dired-dwim/dest/ RET > you rather need this: > Copy a to: /home/work/emacs/test/dired-dwim/dest RET That's counter intuitive: I'd expect either the terminating slash to be of no consequence or else I'd expect "...dired-dwim/dest" to result in the second option (i.e. copy the content of "source/a" into "dest") and "...dired-dwim/dest" to result in the first option (i.e. copy the contents of "source/a" into "dest/a"). Stefan