On Wed, 21 Jan 2009 23:22:57 +0100, Filip Gruszczyński gruszczy@gmail.com wrote:
It's just that I have this reflex, that makes me press Ctrl+S about every ten seconds. So you can imagine, that I can get this effect pretty often, especially that pressing this Ctrl+S doesn't stop me from typing forward the thing I was just doing.
It happens when you save a document quickly after the last save process. The 'file has changed' notification takes a moment (I didn't measured it but I'd say something about 0.5-1 sec) until it is triggered. So there is a little time frame where the state is inconsistent and this time frame is hit when saving really fast continuously. For me, it is practically impossible to hit this in a normal work flow. But the time frame might be significantly larger on other systems, not sure by what factors it is influenced. One of the main factors is probably the used file alteration system, as mentioned before it can FAM, Gamin or nothing (i.e. usual file polling). And then FAM and Gamin can use the kernel's inotify (which probably only exists on Linux) or they also do just polling. And there are probably other possibilities.
After all, since we are working towards the next release, I disabled the GIO based file monitoring for now since it doesn't work as stable yet as I wish.
If anyone wants to re-activate it, in src/document.c is a commented macro USE_GIO_FILEMON, uncomment it and recompile Geany. Otherwise, the old polling method is used which is also not that bad.
Regards, Enrico