From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: renaming directories on windows port Date: Fri, 23 Jun 2006 13:21:03 +0300 Message-ID: References: Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1151058082 24941 80.91.229.2 (23 Jun 2006 10:21:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 23 Jun 2006 10:21:22 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 23 12:21:20 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Ftimt-0000wx-9f for ged-emacs-devel@m.gmane.org; Fri, 23 Jun 2006 12:21:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ftims-0004SH-KC for ged-emacs-devel@m.gmane.org; Fri, 23 Jun 2006 06:21:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ftimg-0004Re-7N for emacs-devel@gnu.org; Fri, 23 Jun 2006 06:21:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ftime-0004RJ-OS for emacs-devel@gnu.org; Fri, 23 Jun 2006 06:21:05 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ftime-0004RA-Hb for emacs-devel@gnu.org; Fri, 23 Jun 2006 06:21:04 -0400 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1Ftixp-0004kZ-Fr for emacs-devel@gnu.org; Fri, 23 Jun 2006 06:32:37 -0400 Original-Received: from HOME-C4E4A596F7 (IGLD-83-130-7-14.inter.net.il [83.130.7.14]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id EYR20928 (AUTH halo1); Fri, 23 Jun 2006 13:21:02 +0300 (IDT) Original-To: martin rudalics In-reply-to: (message from martin rudalics on Wed, 21 Jun 2006 16:08:32 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:56114 Archived-At: > Date: Wed, 21 Jun 2006 16:08:32 +0200 > From: martin rudalics > > 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 > > * 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.