Well, I am curious about what you might want to do before a file is opened. Just off the top of my head, I can't think of anything you might want to do before it is opened that you can't do equally as well after it is open :-) 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. Best of luck Peter On Thu, Jul 30, 2009 at 6:47 AM, Michal 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 >