all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: renaming directories on windows port
Date: Fri, 23 Jun 2006 13:21:03 +0300	[thread overview]
Message-ID: <uy7vo9nqo.fsf@gnu.org> (raw)
In-Reply-To: <wkwtbavbxb.fsf@gmx.at> (message from martin rudalics on Wed, 21 Jun 2006 16:08:32 +0200)

> Date: Wed, 21 Jun 2006 16:08:32 +0200
> From: martin rudalics <rudalics@gmx.at>
> 
> On Windows when I have a directory called "c:/temp/foo" and try to
> 
> (rename-file "c:/temp/foo" "c:/temp/FOO")
> 
> Emacs tells me
> 
> (file-error "Renaming" "no such file or directory" "c:/TEMP/foo" "c:/TEMP/FOO/foo")
> 
> When `file' names a directory, and `newname' and `file' differ in case
> only, the intended action of `rename-file' on Windows reasonably is to
> just change the case of the directory name.  The trivial patch below
> should resolve this:
> 
> 2006-06-21  Martin Rudalics  <rudalics@gmx.at>
> 
> 	* fileio.c (Frename_file): Don't try to move directory to itself
> 	on DOS_NT platforms.

Thanks, I installed this.

Please in the future include in the log entry the preprocessor
condition, if any, of the change.  Here's the ChangeLog entry I
committed:

	* fileio.c (Frename_file) [DOS_NT]: Don't try to move directory to
	itself on DOS_NT platforms, if the old and new names are identical
	but for the letter-case.

      parent reply	other threads:[~2006-06-23 10:21 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-21 14:08 renaming directories on windows port martin rudalics
2006-06-21 18:54 ` Mathias Dahl
2006-06-21 22:36 ` David Glasser
2006-07-02 15:50   ` Stefan Monnier
2006-06-23 10:21 ` Eli Zaretskii [this message]

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=uy7vo9nqo.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    /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.