But in answer to your later questions - have a look at ido, it must do something similar in "overloading"/hijacking the find-file command, I haven't bothered looking at how or what it does, but I do use the mode occasionally. It definitely hijacks find-file and adds its own functionality.
On Thu, Jul 30, 2009 at 6:47 AM, Michal
<rabbitko@tenbit.pl> wrote:
Hallo Group Members
I would like to invoke some action just before file is opened. I do not
see any hook that would allow it for me. find-file-hook is invoked after
file is opened.
Do YOu know any or have an idea on how to do it. I imagine 2 ways:
- overloading find-file - I do not like it.
- advising find-file. ... but maybe there is better solution:)
best regards,
Michal