When I try to create a new file in Emacs with C-x C-f, typing the file name, the Completion always automatically match the name. Unfortunately, once Emacs finds out there be no matched file, it will try to look for the file with the name I just typed in other paths. So when there is a file with the same name in other path, I cannot create this file in the current path. Any one would tell me how to escape this annoying problem?
1
votes
1 Answers
0
votes
The question is unclear, and so risks being closed. Try to give a step-by-step recipe of what you do, starting from emacs -Q
(no init file), to repro the problem.
By default (in vanilla Emacs), C-x C-f
is bound to find-file
, and it does not search multiple "paths". It looks only in the current directory (default-directory
) unless you change the directory in the minibuffer during the command.
Start by using C-h k C-x C-f
, to see what command you are actually using.
ido
orhelm
. For the former, see this question. – Chris