GNU bug report logs - #51357
26.3; Recursively copy a directory into a destination where directory already exists no longer works.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: JeppeTh@HIDDEN; dated Sat, 23 Oct 2021 17:50:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
Removed tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 51357 <at> debbugs.gnu.org:


Received: (at 51357) by debbugs.gnu.org; 25 Oct 2021 15:57:02 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 25 11:57:02 2021
Received: from localhost ([127.0.0.1]:44077 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mf2LO-0000uO-G7
	for submit <at> debbugs.gnu.org; Mon, 25 Oct 2021 11:57:02 -0400
Received: from smtp1-2.ilait.se ([82.99.18.59]:47058)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <JeppeTh@HIDDEN>)
 id 1mf2LM-0000u2-Ag
 for 51357 <at> debbugs.gnu.org; Mon, 25 Oct 2021 11:57:00 -0400
Received: from JTSERVER (81-234-72-66-no17.tbcn.telia.com [81.234.72.66])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jesper.thorell@HIDDEN)
 by smtp.a3mail.se (Postfix) with ESMTPSA id 4HdKMZ1VfvzKmXJ;
 Mon, 25 Oct 2021 15:56:58 +0000 (UTC)
Date: Mon, 25 Oct 2021 17:56:38 +0200
Message-Id: <84v91lyu6h.fsf@HIDDEN>
From: JeppeTh@HIDDEN
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#51357: 26.3;
 Recursively copy a directory into a destination where directory
 already exists no longer works
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 51357
Cc: 51357 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


I guess copy-directory was changed to not invoke make-directory with parents
hardcoded to 't' in emacs 25 then ;)






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51357; Package emacs. Full text available.

Message received at 51357 <at> debbugs.gnu.org:


Received: (at 51357) by debbugs.gnu.org; 25 Oct 2021 13:45:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 25 09:45:43 2021
Received: from localhost ([127.0.0.1]:41997 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mf0II-0000jn-VZ
	for submit <at> debbugs.gnu.org; Mon, 25 Oct 2021 09:45:43 -0400
Received: from quimby.gnus.org ([95.216.78.240]:55770)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1mf0IG-0000jY-8C
 for 51357 <at> debbugs.gnu.org; Mon, 25 Oct 2021 09:45:41 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=E4hoUVvlQF5DywMNy9mtdSvy0IQzxZIaTQrARVMYOME=; b=M+Krle+Z94MueRUEKcqJf6gX7o
 fxD5Ibt/L/eUGS54nL0AJK9m8rfEjm/xL4795HtN5lMrCDYe+wvE9Hb7dGhM3t62asp4VvrnttcXW
 hrYmM1W6VXXcnlRrCm5zWNHcEpP5JKHEzPk2mZ4NPcnGR7vVDcsOrYeGSBG40JTJmZ0I=;
Received: from [84.212.220.105] (helo=elva)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1mf0I6-0001aS-F9; Mon, 25 Oct 2021 15:45:33 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: JeppeTh@HIDDEN
Subject: Re: bug#51357: 26.3; Recursively copy a directory into a
 destination where directory already exists no longer works
References: <84wnm1zas4.fsf@HIDDEN>
Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj
 SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEW0nk6jlnRBTjr/
 ///ZHU4dAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+UKGQ0sK3CpIZgAAAHCSURBVCjPTZJBa9tAEIXH
 ohL2nlqQTOxTCDXY+ysaiA/VKTFaYeuUGhsc/YqtsUvQyQRLuDqtgyVW71d2lDSQ3ct8vMfwdmaJ
 Ph93oT7OHdH0fzlVlming7a+78QXokNPuUoleWcS0dVhEvVYeQgGR7r6LqinEvWDghM5mQhUgiai
 /onEK5tSYE6BJWG6fj/5u0h33oWEnUw3T81G7j1WsFC5Wlu5F5YkfnJjoeUd27wWYqDecQKBMOFu
 hTkOLCth0wAFbLAiF6FF/eflvBmtWInravZ72cy/ReQlse6jUsPVKOKXpkYylL7PkM9e0VRlHvkX
 BhGK4lIUUTynQYzGao0qXnO2xJ5/3WrRxP4XTlAmzctAVuraZyjEepkin3+9Z6hLtbRwN0HEgENy
 m6HaTB45G2ZiC6TWMzSqj0n2vG3SNrXMy1ACl/QoHknWBRjy1IUhkZX2hgEdcWi7WcfYSmrnmScK
 S9eygnZOJCWDdPRNJuY8N3S20MYhBg8gUVteIU/UF2dmwGihyZ3tn7jOzHi4pcmwqBhSM9ZEPkLV
 2kBkaIgS7yDblaR8S+hxt0vyTSgtRAvvJhi82T6wsJ8/WPcfxoTaaKF7k38AAAAldEVYdGRhdGU6
 Y3JlYXRlADIwMjEtMTAtMjVUMTM6NDQ6NDMrMDA6MDD84z6CAAAAJXRFWHRkYXRlOm1vZGlmeQAy
 MDIxLTEwLTI1VDEzOjQ0OjQzKzAwOjAwjb6GPgAAAABJRU5ErkJggg==
X-Now-Playing: Kid Creole & The Coconuts's _Off the Coast of Me_: "Mister
 Softee"
Date: Mon, 25 Oct 2021 15:45:29 +0200
In-Reply-To: <84wnm1zas4.fsf@HIDDEN>
 (JeppeTh@HIDDEN's message of "Mon, 25 Oct 2021
 11:58:03 +0200")
Message-ID: <87pmrtxlom.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: JeppeTh@HIDDEN writes: > Emacs: > M-x
 find-file
 RET /some/directory RET > Move cursor to sub_directory > 'C' and then /tmp/
 RET > Will work in case /tmp/sub_directory doesn't exist. > Then press 'C'
 again and /tmp/ RET > Wi [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 51357
Cc: 51357 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

JeppeTh@HIDDEN writes:

> Emacs:
> M-x find-file RET /some/directory RET
> Move cursor to  sub_directory
> 'C' and then /tmp/ RET
> Will work in case /tmp/sub_directory doesn't exist.
> Then press 'C' again and /tmp/ RET
> Will now fail. 

Thanks; with that recipe I can reproduce the issue.

> Fails in emacs 27 as well.
> Haven't tried emacs 25 - but works in 24.5

It fails in 25.1, so I guess this changed between 24.5 and 25.1.

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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51357; Package emacs. Full text available.

Message received at 51357 <at> debbugs.gnu.org:


Received: (at 51357) by debbugs.gnu.org; 25 Oct 2021 11:24:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Oct 25 07:24:28 2021
Received: from localhost ([127.0.0.1]:41739 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mey5b-0002cl-NI
	for submit <at> debbugs.gnu.org; Mon, 25 Oct 2021 07:24:28 -0400
Received: from smtp1-2.ilait.se ([82.99.18.59]:35468)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <JeppeTh@HIDDEN>)
 id 1mewnR-0008Ns-Fm
 for 51357 <at> debbugs.gnu.org; Mon, 25 Oct 2021 06:01:37 -0400
Received: from JTSERVER (81-234-72-66-no17.tbcn.telia.com [81.234.72.66])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jesper.thorell@HIDDEN)
 by smtp.a3mail.se (Postfix) with ESMTPSA id 4Hd9TW2VrWzKm6D;
 Mon, 25 Oct 2021 10:01:25 +0000 (UTC)
Date: Mon, 25 Oct 2021 11:58:03 +0200
Message-Id: <84wnm1zas4.fsf@HIDDEN>
From: JeppeTh@HIDDEN
To: Lars Ingebrigtsen <larsi@HIDDEN>
Subject: Re: bug#51357: 26.3;
 Recursively copy a directory into a destination where directory
 already exists no longer works
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 51357
X-Mailman-Approved-At: Mon, 25 Oct 2021 07:24:26 -0400
Cc: 51357 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.6 (/)


Not sure if you missunderstood. This is kind of what I want to achieve
Linux:
> cd /some/directory
> cp -rf sub_directory /tmp/
Make some changes inside sub_directory - and then copy to /tmp again
> cp -rf sub_directory /tmp/

Emacs:
M-x find-file RET /some/directory RET
Move cursor to  sub_directory
'C' and then /tmp/ RET
Will work in case /tmp/sub_directory doesn't exist.
Then press 'C' again and /tmp/ RET
Will now fail. 
Fails in emacs 27 as well.
Haven't tried emacs 25 - but works in 24.5






Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51357; Package emacs. Full text available.
Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 51357 <at> debbugs.gnu.org:


Received: (at 51357) by debbugs.gnu.org; 24 Oct 2021 18:03:24 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Oct 24 14:03:24 2021
Received: from localhost ([127.0.0.1]:40762 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1mehq8-00067f-Ay
	for submit <at> debbugs.gnu.org; Sun, 24 Oct 2021 14:03:24 -0400
Received: from quimby.gnus.org ([95.216.78.240]:46556)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1mehq6-00067O-PC
 for 51357 <at> debbugs.gnu.org; Sun, 24 Oct 2021 14:03:23 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org;
 s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date:
 References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:
 Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender:
 Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:
 List-Subscribe:List-Post:List-Owner:List-Archive;
 bh=2BhZgYD7hH5ZyZ6vh5Qdo0kmVzWFpXVrkyAJT4RgXuo=; b=UtzLEBKBsmZvdEAcB5QDXsGznt
 VLwooOhs45cUzd553HAjk3bldKr/YbCE5YM06dbgVfk/Bv83S/0lIEy0tZo+M6cLYZD30gY10DY5+
 nM9fub4nNXf5cBwr5Kxagv/G6OU2BtbuGhBKsMVzGsLggIAF8Tv075q6PKVcQPPXX108=;
Received: from [84.212.220.105] (helo=elva)
 by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.92) (envelope-from <larsi@HIDDEN>)
 id 1mehpx-000180-DW; Sun, 24 Oct 2021 20:03:16 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: JeppeTh@HIDDEN
Subject: Re: bug#51357: 26.3; Recursively copy a directory into a
 destination where directory already exists no longer works.
References: <84r1cby7qb.fsf@HIDDEN>
Date: Sun, 24 Oct 2021 20:03:10 +0200
In-Reply-To: <84r1cby7qb.fsf@HIDDEN>
 (JeppeTh@HIDDEN's message of "Sat, 23 Oct 2021
 19:24:44 +0200")
Message-ID: <87r1ca5mht.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview: JeppeTh@HIDDEN 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 [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 51357
Cc: 51357 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

JeppeTh@HIDDEN 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51357; Package emacs. Full text available.

Message received at 51357 <at> debbugs.gnu.org:


Received: (at 51357) by debbugs.gnu.org; 23 Oct 2021 18:11:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 23 14:11:56 2021
Received: from localhost ([127.0.0.1]:37191 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1meLUq-0005b7-Fh
	for submit <at> debbugs.gnu.org; Sat, 23 Oct 2021 14:11:56 -0400
Received: from eggs.gnu.org ([209.51.188.92]:57712)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1meLUo-0005aq-GE
 for 51357 <at> debbugs.gnu.org; Sat, 23 Oct 2021 14:11:54 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:39742)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1meLUj-00062R-43; Sat, 23 Oct 2021 14:11:49 -0400
Received: from [87.69.77.57] (port=2761 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1meLUd-0005Nl-KX; Sat, 23 Oct 2021 14:11:48 -0400
Date: Sat, 23 Oct 2021 21:11:32 +0300
Message-Id: <83wnm34nmz.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: JeppeTh@HIDDEN
In-Reply-To: <84r1cby7qb.fsf@HIDDEN>
 (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#51357: 26.3;
 Recursively copy a directory into a destination where directory
 already exists no longer works.
References: <84r1cby7qb.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 51357
Cc: 51357 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Sat, 23 Oct 2021 19:24:44 +0200
> From: JeppeTh--- via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> 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.

Even if the target directory name ends in a slash?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#51357; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 23 Oct 2021 17:49:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Oct 23 13:49:19 2021
Received: from localhost ([127.0.0.1]:37127 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1meL8x-0004xI-Ac
	for submit <at> debbugs.gnu.org; Sat, 23 Oct 2021 13:49:19 -0400
Received: from lists.gnu.org ([209.51.188.17]:51686)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <JeppeTh@HIDDEN>)
 id 1meL5d-0003S0-LR
 for submit <at> debbugs.gnu.org; Sat, 23 Oct 2021 13:45:54 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:51900)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <JeppeTh@HIDDEN>)
 id 1meL5a-0004YN-Ue
 for bug-gnu-emacs@HIDDEN; Sat, 23 Oct 2021 13:45:53 -0400
Received: from fallback-relay4-2.ilait.eu ([195.201.62.118]:35920)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <JeppeTh@HIDDEN>)
 id 1meL5Z-0000VZ-42
 for bug-gnu-emacs@HIDDEN; Sat, 23 Oct 2021 13:45:50 -0400
Received: from smtp1-1.ilait.se (smtp1-1.ilait.se [IPv6:2a01:2b0:301d:99::58])
 by fallback-relay4-2.ilait.eu (Postfix) with ESMTPS id
 4Hc7V90BQ2z1qrRN
 for <bug-gnu-emacs@HIDDEN>; Sat, 23 Oct 2021 17:28:33 +0000 (UTC)
Received: from JTSERVER (81-234-72-66-no17.tbcn.telia.com [81.234.72.66])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (No client certificate requested)
 (Authenticated sender: jesper.thorell@HIDDEN)
 by smtp.a3mail.se (Postfix) with ESMTPSA id 4Hc7V25fWxzyZb
 for <bug-gnu-emacs@HIDDEN>; Sat, 23 Oct 2021 17:28:26 +0000 (UTC)
From: JeppeTh@HIDDEN
To: bug-gnu-emacs@HIDDEN
Subject: 26.3; Recursively copy a directory into a destination where directory
 already exists no longer works.
Date: Sat, 23 Oct 2021 19:24:44 +0200
Message-ID: <84r1cby7qb.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: none client-ip=195.201.62.118;
 envelope-from=JeppeTh@HIDDEN;
 helo=fallback-relay4-2.ilait.eu
X-Spam_score_int: -9
X-Spam_score: -1.0
X-Spam_bar: -
X-Spam_report: (-1.0 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_NXDOMAIN=0.9,
 NO_DNS_FOR_FROM=0.001, SPF_HELO_NONE=0.001,
 SPF_NONE=0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Sat, 23 Oct 2021 13:49:17 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://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: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)



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.

This used to work in emacs 24.5


In GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)
 of 2019-08-29 built on CIRROCUMULUS
Repository revision: 96dd0196c28bc36779584e47fffcca433c9309cd
Windowing system distributor 'Microsoft Corp.', version 10.0.19042
Recent messages:
Loading .emacs_emacs...
Loading .emacs_tags...done
Loading .emacs_emacs...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Error during redisplay: (eval (replace-regexp-in-string "%" "%%" (or (gethash (selected-window) which-func-table) which-func-unknown))) signaled (wrong-type-argument arrayp nil) [5 times]
Mark set
Error during redisplay: (eval (replace-regexp-in-string "%" "%%" (or (gethash (selected-window) which-func-table) which-func-unknown))) signaled (wrong-type-argument arrayp nil) [9 times]
Making completion list...
Error during redisplay: (eval (replace-regexp-in-string "%" "%%" (or (gethash (selected-window) which-func-table) which-func-unknown))) signaled (wrong-type-argument arrayp nil) [2 times]
user-error: Beginning of history; no preceding item

Configured using:
 'configure --without-dbus --host=x86_64-w64-mingw32
 --without-compress-install 'CFLAGS=-O2 -static -g3''

Configured features:
XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB
TOOLKIT_SCROLL_BARS THREADS LCMS2

Important settings:
  value of $LANG: ENU
  locale-coding-system: cp1252

Major mode: Emacs-Lisp

Minor modes in effect:
  which-function-mode: t
  show-paren-mode: t
  delete-selection-mode: t
  shell-dirtrack-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  mouse-wheel-mode: t
  menu-bar-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
  column-number-mode: 1
  line-number-mode: 1
  transient-mark-mode: t

Load-path shadows:
c:/Users/Owner/AppData/Roaming/.emacs.d/elpa/magit-20210922.2141/magit-section-pkg hides c:/Users/Owner/AppData/Roaming/.emacs.d/elpa/magit-section-20210829.1849/magit-section-pkg
c:/Users/Owner/Desktop/emacs-26.3-x86_64/share/emacs/26.3/lisp/emacs-lisp/tq hides ~/emacs/tq
c:/Users/Owner/Desktop/emacs-26.3-x86_64/share/emacs/26.3/lisp/ffap hides ~/emacs/ffap

Features:
(shadow sort mail-extr emacsbug message rmc puny rfc822 mml mml-sec epa
derived epg gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils add-log elec-pair
edmacro kmacro whitespace which-func paren ediff-merg ediff-wind
ediff-diff ediff-mult ediff-help ediff-init ediff-util ediff etags xref
project delsel ffap erlang-start powershell executable json-mode
json-reformat subr-x json-snatcher js sgml-mode dom imenu thingatpt
cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine
cc-vars cc-defs hideshow python tramp-sh tramp tramp-compat
tramp-loaddefs trampver ucs-normalize shell pcomplete parse-time
format-spec json map term ehelp ipa finder-inf rx info package easymenu
epg-config url-handlers url-parse auth-source eieio eieio-core
eieio-loaddefs password-cache url-vars seq byte-opt bytecomp
byte-compile cconv compile comint ansi-color ring dired dired-loaddefs
benchmark-init advice cl-seq cl-macs gv cl-loaddefs cl-lib
benchmark-init-loaddefs server time-date mule-util tooltip eldoc
electric uniquify ediff-hook vc-hooks lisp-float-type mwheel dos-w32
ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win
tool-bar dnd fontset image regexp-opt fringe tabulated-list replace
newcomment text-mode elisp-mode lisp-mode prog-mode register page
menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock
font-lock syntax facemenu font-core term/tty-colors frame cl-generic
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite charscript charprop
case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer
cl-preloaded nadvice loaddefs button faces cus-face macroexp files
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget hashtable-print-readable backquote threads w32notify w32
lcms2 multi-tty make-network-process emacs)

Memory information:
((conses 16 435868 15416)
 (symbols 48 35658 1)
 (miscs 40 168 203)
 (strings 32 110257 1870)
 (string-bytes 1 3078403)
 (vectors 16 54217)
 (vector-slots 8 969607 18556)
 (floats 8 185 136)
 (intervals 56 501 41)
 (buffers 992 14))




Acknowledgement sent to JeppeTh@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#51357; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 29 Nov 2021 19:30:02 UTC

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