GNU bug report logs - #9864
24.0.90; dired/copying+dwim-target : misplaced directory

Previous Next

Package: emacs;

Reported by: Andreas Politz <politza <at> fh-trier.de>

Date: Mon, 24 Oct 2011 21:11:01 UTC

Severity: normal

Found in version 24.0.90

Full log


Message #11 received at 9864 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Juri Linkov <juri <at> jurta.org>
Cc: Andreas Politz <politza <at> fh-trier.de>, 9864 <at> debbugs.gnu.org
Subject: Re: bug#9864: 24.0.90; dired/copying+dwim-target : misplaced directory
Date: Tue, 25 Oct 2011 08:47:27 -0400
> 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




This bug report was last modified 13 years and 235 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.