Am 01.11.2010 um 15:49 schrieb Pavel Sanda:

> sw...@lyx.org wrote:
>> Author: switt
>> Date: Sat Oct 30 22:05:55 2010
>> New Revision: 35937
>> URL: http://www.lyx.org/trac/changeset/35937
>> 
>> Log:
>> after successfuly load of autosave or emergency file the VCS state has to be 
>> checked for the original name
> 
> i find disseminating of file_found_hook in various places of buffer routines
> bad idea.

Me too.

> it used to be in one place and would be cool if it remains so.
> Stephan could you please have look whether its possible to push it at one 
> place
> in the load hierarchy?

I did it already (having a look :-)). The resulting question was not answered 
until now.
See the mail with subject "buffer read and vcs info inset".

I'd code the invers operation for getEmergencyFileNameFor() and 
getAutosaveFileNameFor().
Then I'd use the result in readFile() to pass to file_found_hook().

The other possibility I can see is to pass the original filename as optional 
argument.

What should I do?

Stephan

Reply via email to