From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, Drew Adams <drew.adams@oracle.com>
Cc: 24441@debbugs.gnu.org, schwab@suse.de, brady@bradyt.com
Subject: bug#24441: 24.5; rename directory in dired to change case
Date: Thu, 15 Sep 2016 07:57:40 -0700 (PDT) [thread overview]
Message-ID: <7a1c7e15-4d84-400d-9735-a72a31408d6b@default> (raw)
In-Reply-To: <<83d1k56wwt.fsf@gnu.org>>
>>>> If I have a directory `a', and try to rename it `A' in dired, it errors.
>>>> `(file-error Renaming Invalid argument /tmp/a /tmp/A/a)'.
>>>
>>> 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.
>
> 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.
next parent reply other threads:[~2016-09-15 14:57 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <<m2poo5u9c9.fsf@bradyt.com>
[not found] ` <<mvmeg4la4w6.fsf@hawking.suse.de>
[not found] ` <<3c49fbe5-9ae0-4ae2-8fa0-3c44fa85c981@default>
[not found] ` <<83d1k56wwt.fsf@gnu.org>
2016-09-15 14:57 ` Drew Adams [this message]
2016-09-15 15:20 ` bug#24441: 24.5; rename directory in dired to change case Eli Zaretskii
2016-09-15 16:03 ` Ken Brown
2016-09-15 16:36 ` Eli Zaretskii
2016-11-10 22:25 ` Ken Brown
2016-11-11 1:42 ` Ken Brown
2016-11-11 8:27 ` Eli Zaretskii
2016-11-11 16:23 ` Michael Albinus
2016-11-11 21:42 ` Ken Brown
2016-11-12 7:29 ` Eli Zaretskii
2016-11-13 13:14 ` Ken Brown
2016-11-15 19:58 ` Michael Albinus
2016-09-15 3:32 Brady Trainor
2016-09-15 9:05 ` Tino Calancha
2016-09-15 9:28 ` Andreas Schwab
2016-09-15 13:43 ` Drew Adams
2016-09-15 14:49 ` Eli Zaretskii
2016-09-15 14:31 ` Eli Zaretskii
2016-11-14 20:33 ` Paul Eggert
2016-11-15 19:59 ` Ken Brown
2016-11-15 20:30 ` Eli Zaretskii
2016-11-30 22:22 ` Ken Brown
2017-05-21 6:17 ` Paul Eggert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7a1c7e15-4d84-400d-9735-a72a31408d6b@default \
--to=drew.adams@oracle.com \
--cc=24441@debbugs.gnu.org \
--cc=brady@bradyt.com \
--cc=eliz@gnu.org \
--cc=schwab@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).