I have been using a package called `ff-paths' for a little while now and
it's /very/ nice for what it does.[1]
It adds a hook to the `find-file-not-found-hooks' that uses locate and a
couple of other tricks to try and find the file on the file system when
it's missing.
This works really well for interactive use where it pops up a buffer
asking which file you wanted or if you meant to create a new file by
that name.
The problem I have is that it /also/ does this for things like the
PCL-CVS mode 'ignore file' functionality. So, doing that, PCL-CVS calls
find-file and I get a popup asking which '.cvsignore' I meant...
This is undesirable when the find-file was not called interactively, as
was the case for the PCL-CVS mode thing.
I can't see any reliable way to determine if the call to `find-file' was
interactive, though, by the time we hit the `find-file-not-found-hooks'.
So, have I missed something or is there a better way of achieving this?
Daniel
Footnotes:
[1]
http://people.debian.org/~psg/elisp/ff-paths.el
--
If you stick a knife nine inches into my back and pull it out
three inches, that is not progress. Even if you pull it all the
way out, that is not progress...
-- Malcolm X