From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.bugs Subject: bug#24441: 24.5; rename directory in dired to change case Date: Thu, 15 Sep 2016 07:57:40 -0700 (PDT) Message-ID: <7a1c7e15-4d84-400d-9735-a72a31408d6b@default> References: <> <> <<3c49fbe5-9ae0-4ae2-8fa0-3c44fa85c981@default>> <<83d1k56wwt.fsf@gnu.org>> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1473952541 20522 195.159.176.226 (15 Sep 2016 15:15:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 15 Sep 2016 15:15:41 +0000 (UTC) Cc: 24441@debbugs.gnu.org, schwab@suse.de, brady@bradyt.com To: Eli Zaretskii , Drew Adams Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Sep 15 17:15:31 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1bkYNo-0003bR-1A for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Sep 2016 17:15:24 +0200 Original-Received: from localhost ([::1]:35418 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkYNl-00088E-OM for geb-bug-gnu-emacs@m.gmane.org; Thu, 15 Sep 2016 11:15:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkY73-000203-Kn for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 10:58:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bkY71-0005UQ-0N for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 10:58:04 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34667) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bkY70-0005UI-T4 for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 10:58:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bkY70-0005Xq-9D for bug-gnu-emacs@gnu.org; Thu, 15 Sep 2016 10:58:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Drew Adams Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Sep 2016 14:58:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 24441 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 24441-submit@debbugs.gnu.org id=B24441.147395147621302 (code B ref 24441); Thu, 15 Sep 2016 14:58:02 +0000 Original-Received: (at 24441) by debbugs.gnu.org; 15 Sep 2016 14:57:56 +0000 Original-Received: from localhost ([127.0.0.1]:60612 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkY6t-0005XW-VW for submit@debbugs.gnu.org; Thu, 15 Sep 2016 10:57:56 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:34639) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bkY6s-0005XJ-LV for 24441@debbugs.gnu.org; Thu, 15 Sep 2016 10:57:55 -0400 Original-Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u8FEvjto015784 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 15 Sep 2016 14:57:46 GMT Original-Received: from aserv0122.oracle.com (aserv0122.oracle.com [141.146.126.236]) by userv0021.oracle.com (8.13.8/8.13.8) with ESMTP id u8FEvhJf008947 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 15 Sep 2016 14:57:44 GMT Original-Received: from abhmp0019.oracle.com (abhmp0019.oracle.com [141.146.116.25]) by aserv0122.oracle.com (8.14.4/8.14.4) with ESMTP id u8FEvfZP024000; Thu, 15 Sep 2016 14:57:41 GMT In-Reply-To: <<83d1k56wwt.fsf@gnu.org>> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6753.5000 (x86)] X-Source-IP: userv0021.oracle.com [156.151.31.71] 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" Xref: news.gmane.org gmane.emacs.bugs:123338 Archived-At: >>>> If I have a directory `a', and try to rename it `A' in dired, it error= s. >>>> `(file-error Renaming Invalid argument /tmp/a /tmp/A/a)'.=20 >>> >>> That's because your filesystem is case-insensitve, thus /tmp/A already >>> exists. > > > > FWIW, MS Windows is case-insensitive, but it nevertheless shows > > files and directories using both uppercase and lowercase letters. > > And it lets you rename "aa" to "AA", "Aa", etc. The fact that > > the file already exists does not prevent you from renaming it > > to use different letter case. >=20 > That's because we have special code for that, which is only compiled > in the Windows build. OK. And good. My point was that it is not necessarily the case that, for Emacs, _just because_ a filesystem is case-insensitive, you cannot rename a file to the same name but with a different letter case. It is also the case that, for MS Windows at least, you can do such renaming outside Emacs (with Windows Explorer, for instance). Some other OS might not allow for such renaming. But for at least some OSes such renaming is possible, including for Emacs.