From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Kangas Newsgroups: gmane.emacs.devel Subject: Re: PR: dired-do-create-files now checks for trailing slashes in the target Date: Wed, 29 Sep 2021 06:42:35 -0700 Message-ID: References: <831r58k0cx.fsf@gnu.org> <87tui4qyni.fsf@gnu.org> <83tui4iift.fsf@gnu.org> <874ka43rp1.fsf@gnu.org> <83ee97il43.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16597"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, Tassilo Horn To: Rudi C , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Sep 29 15:44: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 1mVZtF-000481-Sl for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Sep 2021 15:44:53 +0200 Original-Received: from localhost ([::1]:36792 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVZtE-00021k-Lu for ged-emacs-devel@m.gmane-mx.org; Wed, 29 Sep 2021 09:44:52 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVZr5-000762-Gn for emacs-devel@gnu.org; Wed, 29 Sep 2021 09:42:39 -0400 Original-Received: from mail-pj1-x1030.google.com ([2607:f8b0:4864:20::1030]:53860) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mVZr4-000598-2B; Wed, 29 Sep 2021 09:42:39 -0400 Original-Received: by mail-pj1-x1030.google.com with SMTP id r7so1713174pjo.3; Wed, 29 Sep 2021 06:42:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :cc; bh=QArGPDlj4yH7jxMwvKgIejwG+NrZFY09OfXlthNse1E=; b=FEBu3OkyeMsoytD7e4eqIOZ4Fi5f2BbCyGnlpMri9ICE6sfkZXthxYM3AY5puF8QsP Ap7rsmh3CF4Bs7c3KH29n/ZoOcqFdIGoWmhHlPxaHP0gLr6OE/TxmaVMr2lFSqz+dYkr iSwZavF7lqXa3bS44x+IKPf5LPJ2p23BYk4FRhjUP4HYZ+5iBxINGB/itKNAkUIbjENR DtyyXeVA/LahuT6/1WBHk1+Tzv/ie8Ck9vty9XlsUgzmixwJjnNQXUmYAp0rBmNglebG enA3aZ2hRKXwWmgBy7xc9Q5Fk9x62Sem8zE/GtRkr8t7sThnLRhhVf0l+rr//hkpiyXu L1Eg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=QArGPDlj4yH7jxMwvKgIejwG+NrZFY09OfXlthNse1E=; b=VFhFEW4Dh0+PkV0Cglu/rNh6G4xO+ViCjq9/G8eVenDJuELZ/AXVAIJbuLiNhpgsD1 fztMTWWCaK7HuNJ2hF3SrJDsZOPVt16+QAbyaqCPL99nNt59nTfjz170Uxl2NNS9fTRH tis9pC4quDerBRdR0LWeBw3Ipv3wDeC2ZCnQoXgdrCx5hzym+AikUQ1hYoDQSBjKm7gS ecfUvOQRWLXarqY1k1cYYM637EIzUKilglkKS/OV/JcK3b5QDC1bnZsVBbYftK5HNzUO iMDp9BeHsCmE0AjBcfPrbzsJFTJL3MOtqoX19gTsgn7qdoN+elaJ0hiUg3s6TyMqOzGt W1VA== X-Gm-Message-State: AOAM530+VADQm8DDS73tBPcctB5EorqF7E5dUcvNKn4SJhFBOu/d8dcG IO6Bvaqv9XrbEpQgYtsM+7aaoYxUtzzFxuU5P6o= X-Google-Smtp-Source: ABdhPJziYJqS9YVVd9MctKQJdiP2vQlbcVTNBWCNqKOPERvw3k5QicRcJQoZ1dW0W4spU9JOcMd/qJ1GjWCOkxHjbn8= X-Received: by 2002:a17:90b:3805:: with SMTP id mq5mr6569884pjb.143.1632922956080; Wed, 29 Sep 2021 06:42:36 -0700 (PDT) Original-Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 29 Sep 2021 06:42:35 -0700 In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::1030; envelope-from=stefankangas@gmail.com; helo=mail-pj1-x1030.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, 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:275794 Archived-At: Rudi C writes: > But we can add a new custom variable. I am all for giving everyone options. > I don't think it can integrate with `dired-create-destination-dirs' though; > `dired-create-destination-dirs-trailing-slash-special'? I have been convinced that this feature is generally useful, just as it is useful in rsync (as Tassilo reminded us). I also don't see any situation where this could lead to a problem, as you will never complete to "foo/" unless that directory already exists: 1. If there is a file "foo", you complete to "foo" and presumably you just get an error if you type a "/" to get "foo/" and then RET. 2. If there is a directory "foo", you complete to "foo/" and you get the current behavior which is to move the file into that already existing directory. BTW, in rsync I can't do "foo/bar/". Does it make sense to support that, perhaps optionally? Much like "mkdir -p".