From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Protesilaos Stavrou Newsgroups: gmane.emacs.bugs Subject: bug#22322: New Feature -- dired: Option to create a directory when copying/moving. Date: Sun, 07 Feb 2021 19:55:47 +0200 Message-ID: <87lfbz4va4.fsf@protesilaos.com> References: <87r1lr24et.fsf@gnus.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="23322"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 22322@debbugs.gnu.org, Keith David Bershatsky To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 07 18:56:28 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1l8oIN-0005yQ-V5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Feb 2021 18:56:27 +0100 Original-Received: from localhost ([::1]:46710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l8oIM-00056v-Kc for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 07 Feb 2021 12:56:26 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49204) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l8oHz-00056l-0J for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 12:56:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:37130) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l8oHy-00008x-By for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 12:56:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l8oHy-0007Hb-8y for bug-gnu-emacs@gnu.org; Sun, 07 Feb 2021 12:56:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Protesilaos Stavrou Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 07 Feb 2021 17:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22322 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 22322-submit@debbugs.gnu.org id=B22322.161272056127987 (code B ref 22322); Sun, 07 Feb 2021 17:56:02 +0000 Original-Received: (at 22322) by debbugs.gnu.org; 7 Feb 2021 17:56:01 +0000 Original-Received: from localhost ([127.0.0.1]:48676 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8oHx-0007HL-7K for submit@debbugs.gnu.org; Sun, 07 Feb 2021 12:56:01 -0500 Original-Received: from relay9-d.mail.gandi.net ([217.70.183.199]:52241) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l8oHt-0007H6-JO for 22322@debbugs.gnu.org; Sun, 07 Feb 2021 12:55:59 -0500 X-Originating-IP: 94.46.225.161 Original-Received: from kronos (unknown [94.46.225.161]) (Authenticated sender: public@protesilaos.com) by relay9-d.mail.gandi.net (Postfix) with ESMTPSA id ABF75FF80A; Sun, 7 Feb 2021 17:55:49 +0000 (UTC) In-Reply-To: <87r1lr24et.fsf@gnus.org> (Lars Ingebrigtsen's message of "Sun, 07 Feb 2021 18:06:50 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:199525 Archived-At: On 2021-02-07, 18:06 +0100, Lars Ingebrigtsen wrote: > Keith David Bershatsky writes: > >> As a suggestion, perhaps the Emacs team would be interested in >> presenting the user with an option to create a new directory when >> copying/moving in dired-mode. This is something I use quite >> frequently in my own setup, because it saves me an extra step by >> obviating the need to create the directory beforehand. >> >> The following is a working example of the above-mentioned concept, >> which is not intended to be a patch per se. > > (I'm going through old bug reports that unfortunately got little response at > the time.) > > Sounds like a good idea to me. Could you work your code into a patch? Hi Lars! Is this not already covered by dired-create-destination-dirs? -- Protesilaos Stavrou protesilaos.com