all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: Eli Zaretskii <eliz@gnu.org>, Drew Adams <drew.adams@oracle.com>
Cc: 22300@debbugs.gnu.org, jwiegley@gmail.com, esq@lawlist.com
Subject: bug#22300: 25.1.50; Dired -- renaming folders/files to CamelCase/UPPERCASE/lowercase.
Date: Mon, 4 Jan 2016 08:14:55 -0800 (PST)	[thread overview]
Message-ID: <7c0709a8-3ccb-42a5-bd48-25969f03da2b@default> (raw)
In-Reply-To: <<83vb7973iy.fsf@gnu.org>>

> > 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).
> 
> Would you still think that if the arguments were changed as below?
> 
>   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?
> 
> Yes, you are:
> 
>   . 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.





       reply	other threads:[~2016-01-04 16:14 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <<m2a8oml6tk.wl%esq@lawlist.com>
     [not found] ` <<m24meutlmk.fsf@newartisans.com>
     [not found]   ` <<a936bee4-3375-45cf-ab35-62e36a21f003@default>
     [not found]     ` <<83vb7973iy.fsf@gnu.org>
2016-01-04 16:14       ` Drew Adams [this message]
2016-01-03 20:57 bug#22300: 25.1.50; Dired -- renaming folders/files to CamelCase/UPPERCASE/lowercase Keith David Bershatsky
2016-01-03 21:10 ` John Wiegley
2016-01-04  0:47   ` Drew Adams
2016-01-04  1:11     ` John Wiegley
2016-01-04  1:37       ` Drew Adams
2016-01-04 15:46         ` Eli Zaretskii
2016-01-04 16:15           ` Drew Adams
2016-01-04 19:22           ` John Wiegley
2016-01-04 19:27             ` Drew Adams
2016-01-04 19:45               ` Eli Zaretskii
2016-01-04 19:44             ` Eli Zaretskii
2016-01-04 19:48               ` John Wiegley
2016-01-04 20:31                 ` Eli Zaretskii
2016-01-04 15:44     ` Eli Zaretskii
2016-01-04  3:31 ` Eli Zaretskii
2016-01-04  4:19 ` Keith David Bershatsky
2016-01-04 15:50   ` Eli Zaretskii
2016-01-04 17:41 ` Keith David Bershatsky
2016-01-04 19:12   ` Eli Zaretskii
2016-01-04 19:45 ` Keith David Bershatsky
2016-01-04 20:24   ` Eli Zaretskii
2016-01-04 20:51 ` Keith David Bershatsky
2016-01-05 16:46   ` Eli Zaretskii
2016-01-05 17:27 ` Keith David Bershatsky
2016-01-05 18:28   ` Eli Zaretskii
2016-01-06  3:56 ` Keith David Bershatsky
2016-01-06 15:40   ` Eli Zaretskii
2016-01-06 19:57 ` Keith David Bershatsky

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7c0709a8-3ccb-42a5-bd48-25969f03da2b@default \
    --to=drew.adams@oracle.com \
    --cc=22300@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=esq@lawlist.com \
    --cc=jwiegley@gmail.com \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.