From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: [External] : Re: PR: dired-do-create-files now checks for trailing slashes in the target Date: Wed, 29 Sep 2021 21:09:56 +0200 Message-ID: <877dez2nsn.fsf@gnu.org> References: <831r58k0cx.fsf@gnu.org> <87tui4qyni.fsf@gnu.org> <83tui4iift.fsf@gnu.org> <874ka43rp1.fsf@gnu.org> <83ee97il43.fsf@gnu.org> <87zgrv33mf.fsf@gnu.org> <838rzfijnj.fsf@gnu.org> <87r1d73312.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14528"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.0; emacs 28.0.50 Cc: Eli Zaretskii , emacs-devel@gnu.org, "rudiwillalwaysloveyou@gmail.com" , "stefankangas@gmail.com" To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 29 21:20:54 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mVf8Q-0003bl-7Q for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Sep 2021 21:20:54 +0200 Original-Received: from localhost ([::1]:50302 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVf8O-0007eV-Vi for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Sep 2021 15:20:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVf6E-0006Hq-0q for emacs-devel@gnu.org; Wed, 29 Sep 2021 15:18:38 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41690) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVf6D-0000gz-LB; Wed, 29 Sep 2021 15:18:37 -0400 Original-Received: from auth1-smtp.messagingengine.com ([66.111.4.227]:49949) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVf6C-0008Ps-Pr; Wed, 29 Sep 2021 15:18:37 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 477E227C005C; Wed, 29 Sep 2021 15:18:36 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Wed, 29 Sep 2021 15:18:36 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudekvddgudeffecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvffuffgjkfggtgfgsehtqhertddtreejnecuhfhrohhmpefvrghs shhilhhoucfjohhrnhcuoehtshguhhesghhnuhdrohhrgheqnecuggftrfgrthhtvghrnh epiedugffhhfejveevvdfhffegteelleejffefgefgueeggeelheefieeujefhheegnecu vehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepthhhohhrnh domhgvshhmthhprghuthhhphgvrhhsohhnrghlihhthidqkeeijeefkeejkeegqdeifeeh vdelkedqthhsughhpeepghhnuhdrohhrghesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Wed, 29 Sep 2021 15:18:34 -0400 (EDT) In-reply-to: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:275825 Archived-At: Drew Adams writes: >> file -> 2.txt (renames plain file no matter if 2.txt already exists) >> file -> foo (move into foo if that's an existing dir, otherwise >> rename) >> file -> foo/ (move into directory foo, creating if not existing >> and dired-create-destination-dirs is non-nil) >>=20 >> The first 2 are unchanged, the third one is the new one. > > What about: foo -> foo/ > > Does that move file foo to directory foo, as > foo/foo, creating directory foo if it doesn't > exist? No, it errors in the same way as it does without the patch. Move: =E2=80=98/home/horn/tmp/foo=E2=80=99 to =E2=80=98/home/horn/tmp/foo= /foo=E2=80=99 failed: (file-error Renaming Invalid argument /home/horn/tmp/foo /home/horn/tmp/f= oo/foo) Bye, Tassilo