From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#22300: 25.1.50; Dired -- renaming folders/files to CamelCase/UPPERCASE/lowercase. Date: Mon, 4 Jan 2016 08:14:55 -0800 (PST) Message-ID: <7c0709a8-3ccb-42a5-bd48-25969f03da2b@default> References: <> <> <> <<83vb7973iy.fsf@gnu.org>> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1451924240 15441 80.91.229.3 (4 Jan 2016 16:17:20 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 Jan 2016 16:17:20 +0000 (UTC) Cc: 22300@debbugs.gnu.org, jwiegley@gmail.com, esq@lawlist.com To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jan 04 17:17:06 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aG7od-0007Np-3K for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jan 2016 17:17:03 +0100 Original-Received: from localhost ([::1]:45694 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aG7oc-0000oo-5K for geb-bug-gnu-emacs@m.gmane.org; Mon, 04 Jan 2016 11:17:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38321) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aG7nj-0007sD-BL for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2016 11:16:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aG7ne-00065s-6K for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2016 11:16:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:49543) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aG7ne-00065o-3F for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2016 11:16:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aG7nd-0006Ul-Vg for bug-gnu-emacs@gnu.org; Mon, 04 Jan 2016 11:16:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 04 Jan 2016 16:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22300 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22300-submit@debbugs.gnu.org id=B22300.145192410724886 (code B ref 22300); Mon, 04 Jan 2016 16:16:01 +0000 Original-Received: (at 22300) by debbugs.gnu.org; 4 Jan 2016 16:15:07 +0000 Original-Received: from localhost ([127.0.0.1]:37760 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aG7mk-0006TK-Px for submit@debbugs.gnu.org; Mon, 04 Jan 2016 11:15:06 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:33201) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1aG7mi-0006Sa-Vm for 22300@debbugs.gnu.org; Mon, 04 Jan 2016 11:15:05 -0500 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u04GEvK6021429 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 4 Jan 2016 16:14:58 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u04GEvUt009069 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Mon, 4 Jan 2016 16:14:57 GMT Original-Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u04GEvjx001280; Mon, 4 Jan 2016 16:14:57 GMT In-Reply-To: <<83vb7973iy.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:111198 Archived-At: > > I do not understand why this is his error msg: > > > > Move '/Users/HOME/Desktop/FOO' to '/Users/HOME/Desktop/foo/FOO' > > failed: > > ^^^ ^^^^^^^ > > (file-error Renaming Invalid argument > > /Users/HOME/Desktop/FOO/Users/HOME/Desktop/foo/FOO) > > > > That looks peculiar, if all he did was hit `R' on a directory name. > > That message seems to be saying that Emacs asked the OS to move > > directory .../FOO to .../foo/FOO. That doesn't seem like the right > > thing for Emacs to do. Seems like Emacs should have asked the OS > > to move .../FOO to .../foo (without the trailing /FOO). >=20 > Would you still think that if the arguments were changed as below? >=20 > Move '/Users/HOME/Desktop/FOO' to '/Users/HOME/Desktop/bar/FOO' I don't understand why you ask that. He (presumably) asked, interactively, to move the directory from .../FOO to .../foo. At least that's my understanding of what he did - that's what he's said. And when I do that on MS Windows that's all that happens: FOO is renamed to foo. In his case, it seems that the target is getting interpreted as .../foo/FOO= . Isn't the whole question here just what the "arguments" are? > > Am I missing something? >=20 > Yes, you are: >=20 > . The filesystem in question is evidently case-insensitive, so Emacs > thinks the user wants to move a directory into another _existing_ > directory ('foo' exists because 'FOO' does) Why would Emacs think that? It doesn't think that when I do the same thing on MS Windows. He has said that he did exactly what I did, when I told Emacs to rename "FOO" to "foo". > . When the target is an existing directory, rename-file _always_ > behaves like shown above (which is actually what the user should > expect, don't you agree?) See previous. Dunno what you mean by it always behaving like you say. `R' in Dired on MS Windows simply renames FOO to foo, if point is on directory FOO and you type only "foo" as the new name. According to what Keith has said, that is not the behavior he gets on his OS. He tells Emacs to rename the directory to "foo", and it (apparently) tries to move (rename) it from FOO to foo/FOO. > . See my other message OK. Your other message says that MS Windows handles `R' correctly because it knows that Windows file/folder names are handled case-insensitively. And it suggests that this is not the case for OS X. So that's the bug (or enhancement request): Emacs should treat OS X file/folder names appropriately.