unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* `rename-file' with leading spaces in filename
@ 2005-12-30 14:20 martin rudalics
  2005-12-30 18:41 ` Eli Zaretskii
  2005-12-30 22:11 ` Richard M. Stallman
  0 siblings, 2 replies; 10+ messages in thread
From: martin rudalics @ 2005-12-30 14:20 UTC (permalink / raw)


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.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2006-01-04  9:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-30 14:20 `rename-file' with leading spaces in filename martin rudalics
2005-12-30 18:41 ` Eli Zaretskii
2006-01-02  9:48   ` martin rudalics
2006-01-02 15:51     ` Eli Zaretskii
2006-01-03  9:47       ` martin rudalics
2006-01-03 18:35         ` Eli Zaretskii
2006-01-04  9:43           ` martin rudalics
2005-12-30 22:11 ` Richard M. Stallman
2006-01-02  9:52   ` martin rudalics
2006-01-02 15:38     ` Eli Zaretskii

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).