From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: PR: dired-do-create-files now checks for trailing slashes in the target Date: Thu, 30 Sep 2021 08:06:25 +0200 Message-ID: <87bl4a7g2m.fsf@gnus.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> <837deziiwz.fsf@gnu.org> <87ee97bgxt.fsf@gnus.org> <87fstn2ydc.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="22519"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Eli Zaretskii , rudiwillalwaysloveyou@gmail.com, Stefan Kangas , emacs-devel@gnu.org To: Tassilo Horn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Sep 30 09:03:06 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 1mVq5x-0005YU-4q for ged-emacs-devel@m.gmane-mx.org; Thu, 30 Sep 2021 09:03:05 +0200 Original-Received: from localhost ([::1]:56306 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mVq5v-0006AQ-2W for ged-emacs-devel@m.gmane-mx.org; Thu, 30 Sep 2021 03:03:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVpDJ-00054x-39 for emacs-devel@gnu.org; Thu, 30 Sep 2021 02:06:37 -0400 Original-Received: from quimby.gnus.org ([2a01:4f9:2b:f0f::2]:55964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mVpDH-0004k2-Bh; Thu, 30 Sep 2021 02:06:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=BU5foSBsFidwTHmD+RYR6RKDbu3DHUzhwA4BEM8JdNo=; b=Q4MKwqKWALH8pXHDbqOG3FVAaA 8H6OykT2xaloCfL5R6NmBa2LyB7KCaxeByrTYFc+ul/nRRx7iZFsQw3LSAVKDTTeNrYjKwlJ8bkmT c6fNYYt0brRbQWdnke49RlvSJmOZ4+Kj24qSkh6yGwyoLGmHlMWSUAKCU4yr2aYXsW+U=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mVpD8-0002K2-Ak; Thu, 30 Sep 2021 08:06:28 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAADFBMVEW8v8V5fYQqKy// ///pLfJCAAAAAWJLR0QDEQxM8gAAAAd0SU1FB+UJHgU7HW70I0YAAAF0SURBVCjPTZGxboNADIb/ Q8DAlEghSpk79SluaJmJlIsapg4hKjxF1LFTIhWkbhm4Suen7G+o2p4E1mefff5tAE5EBtEDiz3N u3yJeAApoQzqIhQ0ZqRrIKxFgvnQP6EWGU3fSV0DhnAzTl2MPIhc0qYOoSN0IufUs9p1BpvJSfyB OfpAJvvPdoupgbEWNyY7IGFvj11owh0j2pAppJfGwShZgvM7GBdJTxhcb+mOWI3NBlf9ALsItbbD h3hNfFtq+qFT6Ds/lTZxMY0B8yFQA0ub4FigmWeAKlHofq/l7h/Mc8G/44AFzTapqj9nEsKRhvKw 5Be/Vgbaq5mjJ1xda1RvvKKvtk9ea8Z5ZWGZuPaGsCjBxmIk3hISyHAptfSuOBDejqpwL9uihpzb iJG8FNeB+qeh9BVli035bCZjnPMazIvKDqtlRsBxmsEGicJ6WuUzLSG1014pjsuPrK7yYmLcqKDS yI05uod7hRH5JGszQ/wNWgOkQKnki5IAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjEtMDktMzBUMDU6 NTk6MjgrMDA6MDB3yrnqAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIxLTA5LTMwVDA1OjU5OjI4KzAw OjAwBpcBVgAAAABJRU5ErkJggg== X-Now-Playing: The Notwist's _Storm_: "Storm 2" In-Reply-To: <87fstn2ydc.fsf@gnu.org> (Tassilo Horn's message of "Wed, 29 Sep 2021 17:17:35 +0200") Received-SPF: pass client-ip=2a01:4f9:2b:f0f::2; envelope-from=larsi@gnus.org; helo=quimby.gnus.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, 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:275858 Archived-At: Tassilo Horn writes: > Lars, note that we are not talking about a specific command like > `dired-do-rename'. The change is to `dired-do-create-files' which is a > workhorse for many dired commands that need some target directory or > file, e.g., renaming/moving, copying, symlinking, etc. Right. Then it's more invasive than I thought... Re-skimming this thread, the suggestion is that if the destination directory ends with a slash, then that directory is created, and the contents of the source is copied (etc) over to it? Isn't that just about the opposite of the syntax in rsync? That is, "rsync foo/ bar" will copy the files in foo over to bad, while "rsync foo bar" will copy the directory itself into bar. (Whether you have a slash or not at the end of the destination directory doesn't make a difference.) So rsync has put semantics on a trailing slash on the source dir, while the proposal here is to add semantics in Dired to the trailing slash of the destination dir? I guess I'm concerned that the semantics here are too subtle (even if we add a user option to switch between behaviours). -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no