unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: JeppeTh@users.github.com
Cc: 51357@debbugs.gnu.org
Subject: bug#51357: 26.3; Recursively copy a directory into a destination where directory already exists no longer works.
Date: Sun, 24 Oct 2021 20:03:10 +0200	[thread overview]
Message-ID: <87r1ca5mht.fsf@gnus.org> (raw)
In-Reply-To: <84r1cby7qb.fsf@JTSERVER.i-did-not-set--mail-host-address--so-tickle-me> (JeppeTh@users.noreply.github.com's message of "Sat, 23 Oct 2021 19:24:44 +0200")

JeppeTh@users.noreply.github.com writes:

> In dired-mode when pressing 'C' on a directory to copy it somewhere, it
> now only works in case the directory doesn't already exist. Otherwise it fails
> with file-already-exists error.
> Overwrite mode or not doesn't seem to make any difference.
>
> It seems there's a change in copy-directory where make-directory used to
> be called with parents hardcoded to 't'. Now it's not and it thereby
> fails.

I tried to reproduce this in Emacs 26.3 and failed.  Here's what I
tried:

./src/emacs -Q .

I went to "admin" (a directory) and said:

C //tmp/newdir3 RET yes RET

Then I went to "etc" (another dir) and said:

C //tmp/newdir3 RET yes RET

And I didn't get any errors.

So do you have a step-by-step recipe to reproduce the problem?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





  parent reply	other threads:[~2021-10-24 18:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-23 17:24 bug#51357: 26.3; Recursively copy a directory into a destination where directory already exists no longer works JeppeTh--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-23 18:11 ` Eli Zaretskii
2021-10-24 18:03 ` Lars Ingebrigtsen [this message]
2021-10-25  9:58 ` JeppeTh--- via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-10-25 13:45   ` Lars Ingebrigtsen
2021-10-25 15:56 ` JeppeTh--- via Bug reports for GNU Emacs, the Swiss army knife of text editors

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r1ca5mht.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=51357@debbugs.gnu.org \
    --cc=JeppeTh@users.github.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).