It gets called again in readfile, but then with the wrong name. As discussed in another thread we can use a single call only and use d->filename.
Op 3 nov 2010 01:06 schreef "Richard Heck" <rgh...@comcast.net>: On 11/02/2010 02:31 AM, Stephan Witt wrote: > > > After my last commit in readFile() it's "only" the issue with file_found_hook being called wit... Are you sure that's still an issue? We have e.g.: Buffer::ReadStatus Buffer::loadAutosave(FileName const & fn) { // Now check if autosave file is newer. FileName const autosaveFile = getAutosaveFileNameFor(fn); .... if (ret_llf == ReadSuccess) { markDirty(); lyxvc().file_found_hook(fn); return ReadSuccess; } ... } And fn here is the file we're trying to load. That's why we calculate the autosave name. The same structure is in the emergency one. rh