emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PR: dired-do-create-files now checks for trailing slashes in the tar


From: Eli Zaretskii
Subject: Re: PR: dired-do-create-files now checks for trailing slashes in the target
Date: Wed, 29 Sep 2021 16:57:16 +0300

> From: Tassilo Horn <tsdh@gnu.org>
> Cc: rudiwillalwaysloveyou@gmail.com, stefankangas@gmail.com,
>  emacs-devel@gnu.org
> Date: Wed, 29 Sep 2021 15:42:50 +0200
> 
> So basically we have those Rename/Copy semantics:
> 
>   file -> 2.txt (renames plain file no matter if 2.txt already exists)
>   file -> foo   (move into foo if that's an existing dir, otherwise rename)
>   file -> foo/  (move into directory foo, creating if not existing
>                  and dired-create-destination-dirs is non-nil)
> 
> The first 2 are unchanged, the third one is the new one.

I'm against unconditionally changing the behavior based on the obscure
fact of whether the directory name ends in a slash or doesn't.  That
slash is ephemeral and users may not be aware to its importance, since
the semantics of foo/ and foo is the same more or less.  So if you
want me to agree to the change, please make this behavior optional.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]