From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Rudi C Newsgroups: gmane.emacs.devel Subject: Re: PR: dired-do-create-files now checks for trailing slashes in the target Date: Tue, 28 Sep 2021 22:12:31 +0330 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000002c2adb05cd129475" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32578"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Stefan Kangas Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Sep 28 20:43:23 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 1mVI4Z-0008Hr-Mm for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Sep 2021 20:43:23 +0200 Original-Received: from localhost ([::1]:42138 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVI4X-00022r-Vb for ged-emacs-devel@m.gmane-mx.org; Tue, 28 Sep 2021 14:43:21 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVI3y-0001LO-6s for emacs-devel@gnu.org; Tue, 28 Sep 2021 14:42:46 -0400 Original-Received: from mail-il1-x12b.google.com ([2607:f8b0:4864:20::12b]:37714) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVI3v-0002hs-OQ for emacs-devel@gnu.org; Tue, 28 Sep 2021 14:42:45 -0400 Original-Received: by mail-il1-x12b.google.com with SMTP id i13so49683ilm.4 for ; Tue, 28 Sep 2021 11:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=y0Iuw0lgXHDBDLX/Z9R89vlhe/30k40gLThL9lfwscE=; b=JjAWRasPCbXi3di1N662heAnPXLgaDNxG5E8ZdCkRl8ZsX8KRmPe4ByqzMFWL0lRKG ru7aPgct1lI+LDKDL/fSWoU5dhNRZtIgYBHGTW7/ubdB/6+H+90lyAOVFc3IJPCynnw3 BcDADx/+B2AmtxLNMCeBYLO2N99cj361uWhfxXsThEu0f5wRbI7W6rzQGIZs5qWV/1Tg PNb2rsS3KUFDvfbRub6tiU2TUqgG+hRv0hvk3k6aX043I28yfV/m/Qov/UxagxiD94ii lkiDjwVpWW9r4PEp1D7OHARi1ulwYy8fVvDgN4SSQXvKwxVnI1siCw4SE1ygoyf2fVJy BgSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=y0Iuw0lgXHDBDLX/Z9R89vlhe/30k40gLThL9lfwscE=; b=cdNCwMZCVe3CqobtvHnX3Yx3HHE3su1jcIUK3FpvwQ4NqIxBPL8lqXAFO4U9L5RHoN ZcMaPKf5T5t5pbhqNm3geiAuvBeRZJtLKOBuUxIGIIUlnNb6YULn9Dd1WWlWYk29s1T0 k1pUHa3v0gHjC2PuRo+cFtDjmSuGI3t3DZciO4Rvt3tUWYdV84weR9VizGGbSKAzSJSq Y8eUEQmoTxh8UwMPpBO84E1jf7PQqfhuB+aLFMXCMrHyekT5w4+vRLDu1rTTXT5RuWer DyOQgepi34CCrapJqKc5Ltllq6lvP0f7ejHa4+ORAO1fqffH4KtLMH+49klrL9NZdPYT u6Jw== X-Gm-Message-State: AOAM5322UF9lY1YVkYE0l+SjE7MpPPP0PwqD5jmGmawiPl9pSUQkMpHw cusBHMvajSOmEDb//T63P+IscQNaLVjmziaeLh9yX1nL2+eluw== X-Google-Smtp-Source: ABdhPJzu+Lc/vtSSr3/t1vwpiSEilga6LeYE6EZlxXq7epc3tISjrmAJijqKIxOC+53lruXbSQ3bnJta5BcGDzaA8Ks= X-Received: by 2002:a05:6e02:1088:: with SMTP id r8mr5555834ilj.46.1632854562579; Tue, 28 Sep 2021 11:42:42 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::12b; envelope-from=rudiwillalwaysloveyou@gmail.com; helo=mail-il1-x12b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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:275722 Archived-At: --0000000000002c2adb05cd129475 Content-Type: text/plain; charset="UTF-8" > Isn't that backwards-incompatible? This is an interactive function, I think, so backward compatibility is a loose concept here. I can add a configuration variable if you think this matters. > similar features in other completion frameworks I don't know if `ivy` has this, but anyway, I try to keep this kind of hotkeys to a minimum; They are easy to forget, they are not ergonomic, and I have only five fingers from birth, which doesn't help. Why would I want a hotkey when I can perfectly achieve what I need without one, and without losing any functionality? Besides, the point is moot, as dired already exposes `dired-create-destination-dirs', so it is not delegating this feature. So it might as well do it right. On Tue, Sep 28, 2021 at 9:47 PM Stefan Kangas wrote: > Rudi C 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? > > > Without this feature, one has to first create the new directory and then > > move the old directory into it, which is so unpleasant I currently just > > copy the path and use my shell's move functions. > > IIRC, if you use e.g. `ido', you can create a directory from the prompt > with M-m. I'm not sure about the default completion, but there are > similar features in other completion frameworks. Isn't that a better > way to go about this? > --0000000000002c2adb05cd129475 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
> Isn't that backwards-incompatible?

=
This is an interactive function, I think, so backward compatibility=C2= =A0is a loose concept here. I can add a configuration variable if you think= this matters.=C2=A0

> similar features in othe= r completion frameworks
I don't know if `ivy` has this, but a= nyway, I try to keep this kind of hotkeys to a minimum; They are easy to fo= rget, they are not ergonomic, and I have only five fingers from birth, whic= h doesn't help. Why would I want a hotkey when I can perfectly achieve = what I need without one, and without losing any functionality?=C2=A0
<= div>
Besides, the point is moot, as dired already exposes `di= red-create-destination-dirs', so it is not delegating this feature. So = it might as well do it right.

On Tue, Sep 28, 2021 at 9:47 PM Stefan K= angas <stefankangas@gmail.com<= /a>> wrote:
R= udi C <rudiwillalwaysloveyou@gmail.com> 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/`<= br> > renames `/old_name` to `/new_name/old_name`.

Isn't that backwards-incompatible?

> Without this feature, one has to first create the new directory and th= en
> move the old directory into it, which is so unpleasant I currently jus= t
> copy the path and use my shell's move functions.

IIRC, if you use e.g. `ido', you can create a directory from the prompt=
with M-m.=C2=A0 I'm not sure about the default completion, but there ar= e
similar features in other completion frameworks.=C2=A0 Isn't that a bet= ter
way to go about this?
--0000000000002c2adb05cd129475--