GNU bug report logs -
#9864
24.0.90; dired/copying+dwim-target : misplaced directory
Previous Next
Full log
View this message in rfc822 format
> 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.