In all these commands, if the argument @var{new} is just a directory
name, the real new name is in that directory, with the same
-non-directory component as @var{old}. For example, @kbd{M-x
-rename-file @key{RET} ~/foo @key{RET}
-@c FIXME: This part of the example should be '/tmp/' not '/tmp',
-@c because '/tmp' is not "just a directory name".
-/tmp
-@c
-@key{RET}} renames @file{~/foo} to @file{/tmp/foo}. All these
+non-directory component as @var{old}. For example,
+@c FIXME: '/tmp' should be '/tmp/' because '/tmp'
+@c is not "just a directory name".
+@kbd{M-x rename-file @key{RET} ~/foo @key{RET} /tmp @key{RET}}
+renames @file{~/foo} to @file{/tmp/foo}. All these
commands ask for confirmation when the new file name already exists,
too.