[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
`rename-file' with leading spaces in filename
From: |
martin rudalics |
Subject: |
`rename-file' with leading spaces in filename |
Date: |
Fri, 30 Dec 2005 15:20:20 +0100 |
User-agent: |
Mozilla Thunderbird 1.0 (Windows/20041206) |
With GNU Emacs 22.0.50.1 (i386-mingw-windows98.3000):
Suppose I have a file called "c:/foo"
Doing M-x rename-file RET c:/foo RET c:/ foo
M-x rename-file RET c:/ foo RET c:/foo
gets me:
File c:/foo already exists; rename to it anyway? (y or n)
After confirmation Emacs renames as expected, the behavior is, however,
inconsistent since the first rename didn't ask for a confirmation.
Suppose now I have two files called "c:/ foo" (one leading space)
and "c:/ foo" (two leading spaces).
Doing M-x rename-file RET c:/ foo RET c:/foo
gets me:
File c:/foo already exists; rename to it anyway? (y or n)
If I now confirm, the file "c:/ foo" (two leading spaces) is deleted and
"c:/ foo" (one leading space) renamed to "c:/foo". That's unfriendly.
- `rename-file' with leading spaces in filename,
martin rudalics <=