From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: master 739593d 3/5: Make gnus-copy-file act like copy-file etc. Date: Thu, 14 Sep 2017 19:54:03 +0300 Message-ID: <8360clnrv8.fsf@gnu.org> References: <20170911053128.28763.28434@vcs0.savannah.gnu.org> <20170911053130.C5F002068F@vcs0.savannah.gnu.org> <83fa9922-8d83-9d2f-82af-f34e90521d88@cs.ucla.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1505408081 10344 195.159.176.226 (14 Sep 2017 16:54:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 14 Sep 2017 16:54:41 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 14 18:54:37 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dsXPR-0002b8-Hd for ged-emacs-devel@m.gmane.org; Thu, 14 Sep 2017 18:54:37 +0200 Original-Received: from localhost ([::1]:48950 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsXPY-0002JY-QL for ged-emacs-devel@m.gmane.org; Thu, 14 Sep 2017 12:54:44 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39577) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsXOx-0002IN-Ef for emacs-devel@gnu.org; Thu, 14 Sep 2017 12:54:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dsXOt-00021i-Fq for emacs-devel@gnu.org; Thu, 14 Sep 2017 12:54:07 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dsXOt-00021c-Cf; Thu, 14 Sep 2017 12:54:03 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1262 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1dsXOs-000249-H3; Thu, 14 Sep 2017 12:54:03 -0400 In-reply-to: (message from Stefan Monnier on Thu, 14 Sep 2017 00:17:06 -0400) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:218276 Archived-At: > From: Stefan Monnier > Date: Thu, 14 Sep 2017 00:17:06 -0400 > > - when copying/renaming to "/foo/dir", first do it as we do now. > - if it signals an error because "/foo/dir" already exists, check if > it's a directory. > - if it's a directory, ask the user to confirm that he meant "/foo/dir/" IMO, this would just add insult to injury. The previous interactive behavior was consistent with 'cp' and 'mv', so it should be left alone. We should only fix the noninteractive behavior, where the danger of some external agent guessing what Emacs will do is significantly higher.