X-Loop: help-debbugs@HIDDEN Subject: bug#9864: 24.0.90; dired/copying+dwim-target : misplaced directory Resent-From: Andreas Politz <politza@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Mon, 24 Oct 2011 21:11:01 +0000 Resent-Message-ID: <handler.9864.B.131949065818618 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: report 9864 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 9864 <at> debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN Received: via spool by submit <at> debbugs.gnu.org id=B.131949065818618 (code B ref -1); Mon, 24 Oct 2011 21:11:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Oct 2011 21:10:58 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1RIRnN-0004qF-Vs for submit <at> debbugs.gnu.org; Mon, 24 Oct 2011 17:10:58 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <politza@HIDDEN>) id 1RIRnL-0004q2-CV for submit <at> debbugs.gnu.org; Mon, 24 Oct 2011 17:10:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <politza@HIDDEN>) id 1RIRlf-0002Tr-9b for submit <at> debbugs.gnu.org; Mon, 24 Oct 2011 17:09:16 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:54705) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <politza@HIDDEN>) id 1RIRlf-0002Th-7j for submit <at> debbugs.gnu.org; Mon, 24 Oct 2011 17:09:11 -0400 Received: from eggs.gnu.org ([140.186.70.92]:56636) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <politza@HIDDEN>) id 1RIRld-0005G5-UH for bug-gnu-emacs@HIDDEN; Mon, 24 Oct 2011 17:09:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <politza@HIDDEN>) id 1RIRlc-0002TN-4I for bug-gnu-emacs@HIDDEN; Mon, 24 Oct 2011 17:09:09 -0400 Received: from gateway-a.fh-trier.de ([143.93.54.181]:46950) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <politza@HIDDEN>) id 1RIRlb-0002T8-A8 for bug-gnu-emacs@HIDDEN; Mon, 24 Oct 2011 17:09:07 -0400 X-Virus-Scanned: by Amavisd-new + McAfee uvscan + ClamAV [Rechenzentrum FH-Trier (r/ft)] Received: from luca (dslb-084-059-109-215.pools.arcor-ip.net [84.59.109.215]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: politza) by gateway-a.fh-trier.de (Postfix) with ESMTPSA id 8443D16CDB6A for <bug-gnu-emacs@HIDDEN>; Mon, 24 Oct 2011 23:08:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=fh-trier.de; s=default; t=1319490530; bh=9ZRoxiGqWDnHPAt8H02d6VRl+2Y=; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type; b=IJC6nfQrnMxgas2I8FXTyJrBgc/flmd5pY6cAniUZbuJBCMiy/1TQA6sZ8qrB/6jR 937U7pqsJL/BAuQG8oMfN1PtaJ58gOs7GblVzdwd2FNkyNi4MnQiqafpZqhmXnrnvy 4PwrEjzTNgPGQZJXs+j7rKkPVXlHUDx4K4dzEPIA= Received: from [127.0.0.1] (helo=luca) by luca with esmtp (Exim 4.72) (envelope-from <politza@luca>) id 1RIRp4-0001MP-3c for bug-gnu-emacs@HIDDEN; Mon, 24 Oct 2011 23:12:42 +0200 From: Andreas Politz <politza@HIDDEN> Date: Mon, 24 Oct 2011 23:12:41 +0200 Message-ID: <87sjmit7p2.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: text/plain X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -6.0 (------) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -6.0 (------) Create some directories : $ find dest dest/a source source/a source/a/foo Open two dired buffers in source + dest, enable `dired-dwim-target' and dired-do-copy source/a to dest. Now dest looks like this : /tmp/dest /tmp/dest/a /tmp/dest/a/a /tmp/dest/a/a/foo A. Politz In GNU Emacs 24.0.90.1 (x86_64-pc-linux-gnu, GTK+ Version 2.20.1) of 2011-10-18 on cw-bkp0, modified by Debian (emacs-snapshot package, version 1:20111012-1+squeeze1) Windowing system distributor `The X.Org Foundation', version 11.0.10707000 configured using `configure '--build' 'x86_64-linux-gnu' '--host' 'x86_64-linux-gnu' '--prefix=/usr' '--sharedstatedir=/var/lib' '--libexecdir=/usr/lib' '--localstatedir=/var' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-pop=yes' '--enable-locallisppath=/etc/emacs-snapshot:/etc/emacs:/usr/local/share/emacs/24.0.90/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/24.0.90/site-lisp:/usr/share/emacs/site-lisp' '--without-compress-info' '--with-crt-dir=/usr/lib//' '--with-x=yes' '--with-x-toolkit=gtk' '--with-imagemagick=yes' 'build_alias=x86_64-linux-gnu' 'host_alias=x86_64-linux-gnu' 'CFLAGS=-DDEBIAN -DSITELOAD_PURESIZE_EXTRA=5000 -g -O2' 'LDFLAGS=-g -Wl,--as-needed' 'CPPFLAGS='' Important settings: value of $LC_ALL: C value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: de_DE.UTF-8 value of $XMODIFIERS: nil locale-coding-system: nil default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: eldoc-mode: t shell-dirtrack-mode: t savehist-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: ESC [ > 0 ; 2 6 1 ; 0 c ESC ] 1 1 ; r g b : 0 0 0 0 / 0 0 0 0 / 0 0 0 0 ESC \ C-x 4 f ESC DEL 2 RET C-x o C-x o i D y y C-_ C-_ C-x o C RET y C-x o i C-_ C-p C-x C-c M-x b u g <tab> <M-backspace> <M-backspace> r e p o <tab> r t <tab> <return> Recent messages: Recursive copies of /tmp/1/a? (y or n) y Copy: 1 of 1 Copy: 1 file Mark set Undo! Change in dired buffer undone. Actual changes in files cannot be undone by Emacs. (No files need saving) When done with this frame, type C-x 5 0 Making completion list... Load-path shadows: /usr/share/emacs/site-lisp/haskell-mode/haskell-decl-scan hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-decl-scan /usr/share/emacs/site-lisp/haskell-mode/haskell-c hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-c /usr/share/emacs/site-lisp/haskell-mode/haskell-ghci hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-ghci /usr/share/emacs/site-lisp/haskell-mode/haskell-doc hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-doc /usr/share/emacs/site-lisp/haskell-mode/haskell-indent hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-indent /usr/share/emacs/site-lisp/haskell-mode/haskell-mode hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-mode /usr/share/emacs/site-lisp/haskell-mode/haskell-hugs hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-hugs /usr/share/emacs/site-lisp/haskell-mode/haskell-site-file hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-site-file /usr/share/emacs/site-lisp/haskell-mode/haskell-cabal hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-cabal /usr/share/emacs/site-lisp/haskell-mode/inf-haskell hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/inf-haskell /usr/share/emacs/site-lisp/haskell-mode/haskell-font-lock hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-font-lock /usr/share/emacs/site-lisp/haskell-mode/haskell-simple-indent hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-simple-indent /usr/share/emacs/site-lisp/haskell-mode/haskell-indentation hides /usr/share/emacs/24.0.90/site-lisp/haskell-mode/haskell-indentation /usr/share/emacs/24.0.90/site-lisp/debian-startup hides /usr/share/emacs/site-lisp/debian-startup Features: (shadow mail-extr message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev mail-utils gmm-utils mailheader emacsbug help-mode view dired-aux server eldoc auctex-autoloads tex-site info c-eldoc-autoloads sunrise-x-loop-autoloads sunrise-x-loop sunrise-commander term ehelp electric sort find-dired disp-table enriched dired-x sunrise-commander-autoloads package tabulated-list tramp tramp-compat auth-source eieio assoc gnus-util mm-util mail-prsvr password-cache shell format-spec tramp-loaddefs dired-details+ dired dired-details org byte-opt warnings bytecomp byte-compile cconv macroexp advice help-fns advice-preload ob-emacs-lisp ob-tangle ob-ref ob-lob ob-table org-footnote org-src ob-comint ob-keys ob ob-eval org-pcomplete pcomplete comint ring org-list org-faces org-compat org-entities org-macs noutline outline easy-mmode cal-menu easymenu calendar cal-loaddefs time-date savehist regexp-opt edmacro kmacro cl w3m-load tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)
Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) Content-Type: text/plain; charset=utf-8 X-Loop: help-debbugs@HIDDEN From: help-debbugs@HIDDEN (GNU bug Tracking System) To: Andreas Politz <politza@HIDDEN> Subject: bug#9864: Acknowledgement (24.0.90; dired/copying+dwim-target : misplaced directory ) Message-ID: <handler.9864.B.131949065818618.ack <at> debbugs.gnu.org> References: <87sjmit7p2.fsf@HIDDEN> X-Gnu-PR-Message: ack 9864 X-Gnu-PR-Package: emacs Reply-To: 9864 <at> debbugs.gnu.org Date: Mon, 24 Oct 2011 21:11:01 +0000 Thank you for filing a new bug report with debbugs.gnu.org. This is an automatically generated reply to let you know your message has been received. Your message is being forwarded to the package maintainers and other interested parties for their attention; they will reply in due course. Your message has been sent to the package maintainer(s): bug-gnu-emacs@HIDDEN If you wish to submit further information on this problem, please send it to 9864 <at> debbugs.gnu.org. Please do not send mail to help-debbugs@HIDDEN unless you wish to report a problem with the Bug-tracking system. --=20 9864: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D9864 GNU Bug Tracking System Contact help-debbugs@HIDDEN with problems
X-Loop: help-debbugs@HIDDEN Subject: bug#9864: 24.0.90; dired/copying+dwim-target : misplaced directory Resent-From: Juri Linkov <juri@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 25 Oct 2011 04:39:02 +0000 Resent-Message-ID: <handler.9864.B9864.131951753128365 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 9864 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andreas Politz <politza@HIDDEN> Cc: 9864 <at> debbugs.gnu.org Received: via spool by 9864-submit <at> debbugs.gnu.org id=B9864.131951753128365 (code B ref 9864); Tue, 25 Oct 2011 04:39:02 +0000 Received: (at 9864) by debbugs.gnu.org; 25 Oct 2011 04:38:51 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1RIYmp-0007NS-25 for submit <at> debbugs.gnu.org; Tue, 25 Oct 2011 00:38:51 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <juri@HIDDEN>) id 1RIYmk-0007NG-1Z for 9864 <at> debbugs.gnu.org; Tue, 25 Oct 2011 00:38:46 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id A592A6E806F; Mon, 24 Oct 2011 21:37:10 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id CB7FC451C567; Mon, 24 Oct 2011 21:37:09 -0700 (PDT) From: Juri Linkov <juri@HIDDEN> Organization: JURTA References: <87sjmit7p2.fsf@HIDDEN> Date: Tue, 25 Oct 2011 07:36:04 +0300 In-Reply-To: <87sjmit7p2.fsf@HIDDEN> (Andreas Politz's message of "Mon, 24 Oct 2011 23:12:41 +0200") Message-ID: <87pqhlwz0f.fsf@HIDDEN> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.90 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -2.7 (--) > Create some directories : > > $ find > dest > dest/a > source > source/a > source/a/foo > > Open two dired buffers in source + dest, enable `dired-dwim-target' and > dired-do-copy source/a to dest. Now dest looks like this : > > /tmp/dest > /tmp/dest/a > /tmp/dest/a/a > /tmp/dest/a/a/foo It's unclear what do you expect. 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 and then it will ask: Overwrite `/tmp/dest/a'? [Type yn!q or C-h] n and then it's better to answer `n'.
X-Loop: help-debbugs@HIDDEN Subject: bug#9864: 24.0.90; dired/copying+dwim-target : misplaced directory Resent-From: Stefan Monnier <monnier@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 25 Oct 2011 12:50:02 +0000 Resent-Message-ID: <handler.9864.B9864.131954695412647 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 9864 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Juri Linkov <juri@HIDDEN> Cc: Andreas Politz <politza@HIDDEN>, 9864 <at> debbugs.gnu.org Received: via spool by 9864-submit <at> debbugs.gnu.org id=B9864.131954695412647 (code B ref 9864); Tue, 25 Oct 2011 12:50:02 +0000 Received: (at 9864) by debbugs.gnu.org; 25 Oct 2011 12:49:14 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1RIgRN-0003Hw-Lq for submit <at> debbugs.gnu.org; Tue, 25 Oct 2011 08:49:14 -0400 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 <monnier@HIDDEN>) id 1RIgRK-0003Hi-9K for 9864 <at> 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" 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 Received: by ceviche.home (Postfix, from userid 20848) id 307C966158; Tue, 25 Oct 2011 08:47:27 -0400 (EDT) From: Stefan Monnier <monnier@HIDDEN> Message-ID: <jwv4nyxz1kx.fsf-monnier+emacs@HIDDEN> References: <87sjmit7p2.fsf@HIDDEN> <87pqhlwz0f.fsf@HIDDEN> Date: Tue, 25 Oct 2011 08:47:27 -0400 In-Reply-To: <87pqhlwz0f.fsf@HIDDEN> (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) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -2.7 (--) > 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
X-Loop: help-debbugs@HIDDEN Subject: bug#9864: 24.0.90; dired/copying+dwim-target : misplaced directory Resent-From: "Andreas Politz, INF|INF-I" <politza@HIDDEN> Original-Sender: debbugs-submit-bounces <at> debbugs.gnu.org Resent-CC: bug-gnu-emacs@HIDDEN Resent-Date: Tue, 25 Oct 2011 13:25:01 +0000 Resent-Message-ID: <handler.9864.B9864.131954907015699 <at> debbugs.gnu.org> Resent-Sender: help-debbugs@HIDDEN X-GNU-PR-Message: followup 9864 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier <monnier@HIDDEN>,Juri Linkov <juri@HIDDEN> Cc: 9864 <at> debbugs.gnu.org Received: via spool by 9864-submit <at> debbugs.gnu.org id=B9864.131954907015699 (code B ref 9864); Tue, 25 Oct 2011 13:25:01 +0000 Received: (at 9864) by debbugs.gnu.org; 25 Oct 2011 13:24:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1RIgzW-00045A-F6 for submit <at> debbugs.gnu.org; Tue, 25 Oct 2011 09:24:30 -0400 Received: from gateway-b.fh-trier.de ([143.93.54.182]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from <politza@HIDDEN>) id 1RIgzU-00044w-2e for 9864 <at> debbugs.gnu.org; Tue, 25 Oct 2011 09:24:29 -0400 X-Virus-Scanned: by Amavisd-new + McAfee uvscan + ClamAV [Rechenzentrum FH-Trier (r/ft)] Received: from fh-trier.de (owm.fh-trier.de [143.93.54.170]) by gateway-b.fh-trier.de (Postfix) with ESMTP id EE4C217B485; Tue, 25 Oct 2011 15:22:30 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha1; c=simple/simple; d=fh-trier.de; s=default; t=1319548951; bh=qq4aTGKMTPypM8yQv7HX4347xIg=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version:Content-Type; b=lEp57iiJlYwpZtU1hp7EWLKREvEfcfeI2UVW88n4M48ceBMVP/oBa9rVBpK/EOEyU cwfV7vVgbGeZBxuL+6sHFcoLa6YaQymoQj9pG8K2qSKgoq3pNwfVd9Nu/nqc2i3Woq 3ot2FHY9lpy1Jl89qprcL5NqjvgYfd9810HGcV+A= From: "Andreas Politz, INF|INF-I" <politza@HIDDEN> Date: Tue, 25 Oct 2011 15:22:30 +0200 Message-Id: <20111025130854.M7977@HIDDEN> In-Reply-To: <jwv4nyxz1kx.fsf-monnier+emacs@HIDDEN> References: <87sjmit7p2.fsf@HIDDEN> <87pqhlwz0f.fsf@HIDDEN> <jwv4nyxz1kx.fsf-monnier+emacs@HIDDEN> X-Mailer: OpenWebMail 2.53 X-OriginatingIP: 84.59.109.215 (politza) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Sender: debbugs-submit-bounces <at> debbugs.gnu.org Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org X-Spam-Score: -6.6 (------) On Tue, 25 Oct 2011 08:47:27 -0400, Stefan Monnier wrote > > It's unclear what do you expect. > I expect it to work like 'cp -r', Stefans first outcome. This is also how it is (more or less) advertised in the info-manual (info "(emacs) Operating on Files") . > 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. > Andreas
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.