On Tue, Aug 07, 2007 at 03:55:50PM -0500, Bo Peng wrote: > > Yep. -2 (even without seeing the patch :) > > How about a combination of both? > > 1. when lyx gets focus, check diskfile. if modified, set diskModified = true > 2. when the buffer is modified and if diskModified, ask if reload the > file. If so, reload.the file. If not, set diskModified to false. > > Briefly, disk checking only happens when lyx gets focus, but reloading > is prompted only when the buffer is changed. > Checking on focus seems excessive to me - I too have "focus follows mouse" and my .lyx files are on a remote file server.
Having little hangups as the network is consulted whenever the mouse slides over a LyX window is not what I want. That file server is busy at times. So is the network. The check is useful though. It should definitely happen at document save time - to avoid unexpected overwriting. But is it necessary at other times? I don't think such a test is useful as long as the document isn't modified - the user may only be reading it. Maybe a check at the transition from unmodified to modified is useful, as well as the 'save' check. Helge Hafting
