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: PR: dired-do-create-files now checks for trailing slashes in the target Date: Tue, 28 Sep 2021 21:29:04 +0200 Message-ID: <87tui4qyni.fsf@gnu.org> References: <831r58k0cx.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32998"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.7.0; emacs 28.0.50 Cc: rudiwillalwaysloveyou@gmail.com, Stefan Kangas , emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 28 21:38:48 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 1mVIwC-0008T1-PK for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Sep 2021 21:38:48 +0200 Original-Received: from localhost ([::1]:54690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVIwA-0000or-RV for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Sep 2021 15:38:46 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46994) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVIvO-0008No-QT for emacs-devel@gnu.org; Tue, 28 Sep 2021 15:37:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:56918) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVIvO-0006t9-GP; Tue, 28 Sep 2021 15:37:58 -0400 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:58193) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVIvO-0002EG-5O; Tue, 28 Sep 2021 15:37:58 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id A730727C0054; Tue, 28 Sep 2021 15:37:56 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Tue, 28 Sep 2021 15:37:56 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudektddgudefhecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpehffgfhvffuffgjkfggtgesthdtredttdertdenucfhrhhomhepvfgrshhs ihhlohcujfhorhhnuceothhsughhsehgnhhurdhorhhgqeenucggtffrrghtthgvrhhnpe etieekvdejvdekhffgheffleetudeluedvgeeguedvtdfgudduueeujeegudeltdenucff ohhmrghinhepshhlrghshhdrshhonecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg hmpehmrghilhhfrhhomhepthhhohhrnhdomhgvshhmthhprghuthhhphgvrhhsohhnrghl ihhthidqkeeijeefkeejkeegqdeifeehvdelkedqthhsughhpeepghhnuhdrohhrghesfh grshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 28 Sep 2021 15:37:55 -0400 (EDT) In-reply-to: <831r58k0cx.fsf@gnu.org> 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:275738 Archived-At: Eli Zaretskii writes: >> > With this patch, we can move directories into new directories if we >> > explicitly end the new name with a trailing slash. >> > >> > So `/new_name` renames `/old_name` to `/new_name`, while `/new_name/` >> > renames `/old_name` to `/new_name/old_name`. >> >> Isn't that backwards-incompatible? > > It may or may not be, but I'd suggest first to have a reproducible > recipe that demonstrates the problem. Because I don't think I > understand what this is trying to solve. It solves the problem of moving/copying a file or directory into a not-yet-existing directory. So with the above example, you can do R /new_name/ RET if point is on /old_name or /old_name is marked to move /old_name into /new_name/. Right now, you need to do + /new_name RET ;; create the new directory R /new_name RET ;; then move /old_name FWIW, I would find it very convenient if dired would create the target directory if I indicate it as directory by specifying a trailing /. Bye, Tassilo