1

I am using Emacs on Windows 7, and am finding that ido-mode is not picking up some files created since I started using it.

E.g. directory contains:

foo.txt
bar.txt

Open foo.txt in Emacs. Later, create blah.txt in the directory (also in Emacs).

When I do C-x C-f with ido-mode enabled, I see foo.txt and bar.txt but not the newly created blah.txt.

No matter how many times I open this file, it doesn't show. I either step out of ido with C-f or type the name exactly to get to it.

Any ideas what could fix this? I don't have FileNameCache enabled.

katspaugh
  • 17,449
  • 11
  • 66
  • 103
HXCaine
  • 4,228
  • 3
  • 31
  • 36
  • How do you create blah.txt? – aartist Mar 30 '13 at 21:48
  • Within Emacs, actually. It's not consistent, though, it is happening with a few files only at the moment – HXCaine Mar 30 '13 at 21:59
  • Is `blah.txt` saved when it happens? Can any other program see it? – Dmitry Mar 31 '13 at 14:19
  • Yes it's saved, I am able to use it as usual in the terminal and I can still open it in Emacs if I type the full name and 'confirm'. I can also C-f out of ido-mode and it gets picked up fine – HXCaine Mar 31 '13 at 14:37
  • [This post](http://stackoverflow.com/questions/906290/2-questions-ido-mode-not-caching-properly-forcing-buffers-to-named-windows) asks a similar question (in addition to an unrelated one). – Alan Apr 30 '13 at 17:21

1 Answers1

0

Using ido-reread-directory (Bound to C-l) should solve this problem.

To read the files do

C-x C-f and then C-l to reread the directory when necessary.

FredrikHedman
  • 1,223
  • 7
  • 14